Skip to content

Deprecate message in favor of new Safe #10

Deprecate message in favor of new Safe

Deprecate message in favor of new Safe #10

Workflow file for this run

name: "Deploy to rsk-gnosis-safe.com"
on:
pull_request:
branches:
- 'master'
types: [closed]
jobs:
deploy:
if: github.event.pull_request.merged == true
name: Deploy to prod
runs-on: ubuntu-latest
steps:
- name: Configure AWS credentials
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: ${{ secrets.AWS_REGION }}
- name: Checkout
uses: actions/checkout@v2
- name: Use Node 10
uses: actions/setup-node@v2
with:
node-version: '10'
- name: Install dependencies
run: |
sudo apt install libusb-1.0-0-dev libudev-dev
yarn
- name: Build site
run: |
yarn build-mainnet
- name: Deploy site to S3
run: |
aws s3 sync --delete --only-show-errors build/ ${{ secrets.S3_BUCKET }}
- name: Invalidate CloudFront cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION }} --paths "/*"