chore(deps): bump tough-cookie and eth-gas-reporter (#75) #22
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: QA CD | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: QA | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.QA_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.QA_AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.QA_AWS_REGION }} | |
- name: Setup Node 16 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: | | |
npm ci --force # FIXME: PP-648 | |
- name: Build site | |
run: | | |
npm run build:qa | |
- name: Deploy site to S3 | |
run: | | |
aws s3 sync --delete --only-show-errors build/ ${{ secrets.QA_S3_BUCKET }} | |
- name: Invalidate CloudFront cache | |
run: | | |
aws cloudfront create-invalidation --distribution-id ${{ secrets.QA_CLOUDFRONT_DISTRIBUTION }} --paths "/*" |