Bump browserify-sign from 4.2.1 to 4.2.2 #113
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: "[Create] Deploy to staging" | |
on: [push] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: yarn install & build | |
run: | | |
# https://github.com/yarnpkg/yarn/issues/2629 | |
while ! yarn install; do echo --- ; done | |
yarn workspace request-shared build | |
yarn workspace request-ui build | |
yarn workspace create build | |
env: | |
CI: false | |
PUBLIC_URL: https://${{ secrets.CREATE_STAGING_S3_BUCKET }} | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: create-build-artifact | |
path: packages/create/build | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: create-build-artifact | |
path: packages/create/build | |
- uses: benjlevesque/s3-sync-action@master | |
env: | |
CI: false | |
SOURCE_DIR: "packages/create/build" | |
AWS_REGION: eu-west-1 | |
AWS_S3_BUCKET: ${{ secrets.CREATE_STAGING_S3_BUCKET }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |