Skip to content

Add user feedback for filling consumables, fix c125 coal flag (#209) #146

Add user feedback for filling consumables, fix c125 coal flag (#209)

Add user feedback for filling consumables, fix c125 coal flag (#209) #146

Workflow file for this run

name: Deploy to production
on:
push:
branches:
- mainline
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_DEPLOY_ROLE }}
aws-region: ${{ secrets.AWS_REGION }}
- run: npm ci
- run: npm run check
- run: npx webpack --mode=production
- run: aws s3 sync railroad.studio s3://railroad.studio --size-only
- run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_ID }} --paths '/*'