Skip to content

Ignore coles errors since some things seem to be broken #40

Ignore coles errors since some things seem to be broken

Ignore coles errors since some things seem to be broken #40

Workflow file for this run

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 "/*"