Skip to content

Commit

Permalink
Updated build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbum committed Sep 6, 2023
1 parent 572b29b commit 628efe9
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,26 @@ jobs:
build_deploy:
runs-on: ubuntu-latest
steps:
- uses: n1hility/cancel-previous-runs@v2
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/[email protected]

- name: Use Node.js 16.13.1
uses: actions/setup-node@v1
with:
node-version: 16.13.1
- name: Build 11ty

- name: Build Site
run: |
npm install
npm run site:build
- name: Write robots.txt
run: |
mkdir _site
mkdir _site_dist
npm install --legacy-peer-deps
npm run build
echo 'User-agent: *' > _site/robots.txt
echo 'Allow: /' >> _site/robots.txt
echo 'Sitemap: https://designsystem.webstandards.ca.gov/sitemap.xml' >> docs/robots.txt
# Push built site files to S3 production bucket
- name: Configure AWS Credentials
Expand Down

0 comments on commit 628efe9

Please sign in to comment.