Skip to content

Add chain to the Metamask if it does not exist (#69) #248

Add chain to the Metamask if it does not exist (#69)

Add chain to the Metamask if it does not exist (#69) #248

name: "[Pay] 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 pay build
env:
CI: false
PUBLIC_URL: https://${{ secrets.PAY_STAGING_S3_BUCKET }}
REACT_APP_EGS_API_KEY: ${{ secrets.EGS_API_KEY }}
- name: Upload build artifact
uses: actions/upload-artifact@v1
with:
name: pay-build-artifact
path: packages/pay/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: pay-build-artifact
path: packages/pay/build
- uses: benjlevesque/s3-sync-action@master
env:
CI: false
SOURCE_DIR: "packages/pay/build"
AWS_REGION: eu-west-1
AWS_S3_BUCKET: ${{ secrets.PAY_STAGING_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}