Skip to content

Support editing legacy industries (#210) #147

Support editing legacy industries (#210)

Support editing legacy industries (#210) #147

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