Ignore coles errors since some things seem to be broken #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Site | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm install | |
working-directory: web/ | |
- name: Build static site | |
run: node bundle.js | |
working-directory: web/ | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: "${{ vars.TARGET_ROLE_ARN }}" | |
aws-region: ap-southeast-2 | |
- name: Upload site to S3 | |
run: aws s3 sync ./static/ s3://hotprices.org/ | |
- name: Invalidate CloudFront cache to make changes available right away | |
run: aws cloudfront create-invalidation --distribution-id "${{ vars.CLOUDFRONT_DIST_ID }}" --paths "/*" |