Skip to content

Improve

Improve #126

Workflow file for this run

on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: yarn-${{ hashFiles('yarn.lock') }}
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- run: yarn
- run: yarn prod
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- run: aws s3 sync dist s3://${{ secrets.S3_BUCKET_PUBLIC }}/dist
- run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_ID }} --paths "/dist/*"
- run: aws s3 sync s3://${{ secrets.S3_BUCKET_BUILD }}/browser-runner wasm-dist/browser-runner
- run: yarn prod-worker
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- run: aws s3 sync worker-dist s3://${{ secrets.S3_BUCKET_PUBLIC }}/worker-assets
- run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_ID }} --paths "/worker-assets/*"
- run: aws s3 sync s3://${{ secrets.S3_BUCKET_PUBLIC }}/images images
- run: yarn prod-cli
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- run: aws s3 sync cli-dist s3://${{ secrets.S3_BUCKET_BUILD }}/cli-assets