Prod Release Deployment #18
Workflow file for this run
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: Prod Release Deployment | |
on: | |
release: | |
types: created | |
env: | |
REACT_APP_ETHERSCAN_KEY: ${{ secrets.REACT_APP_ETHERSCAN_KEY }} | |
REACT_APP_INFURA_KEY: ${{ secrets.REACT_APP_INFURA_KEY }} | |
REACT_APP_ONBOARD_JS_DAPP_ID: ${{ secrets.REACT_APP_ONBOARD_JS_DAPP_ID }} | |
REACT_APP_OPTIMISTIC_ETHERSCAN_KEY: ${{ secrets.REACT_APP_OPTIMISTIC_ETHERSCAN_KEY }} | |
REACT_APP_ARBISCAN_KEY: ${{ secrets.REACT_APP_ARBISCAN_KEY }} | |
REACT_APP_SNOWTRACE_KEY: ${{ secrets.REACT_APP_SNOWTRACE_KEY }} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy to Prod | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- run: npm install -g yarn | |
- run: yarn install | |
working-directory: packages/exit-app | |
- run: yarn build | |
working-directory: packages/exit-app | |
- name: Pin to IPFS | |
id: upload | |
uses: anantaramdas/ipfs-pinata-deploy-action@39bbda1ce1fe24c69c6f57861b8038278d53688d | |
with: | |
pin-name: Zodiac Exit App - Prod — ${ GITHUB_SHA } | |
path: "./packages/exit-app/build" | |
pinata-api-key: ${{ secrets.PINATA_API_KEY }} | |
pinata-secret-api-key: ${{ secrets.PINATA_API_SECRET_KEY }} | |
- name: Pin to Crust | |
uses: crustio/ipfs-crust-action@v2.0.3 | |
continue-on-error: true | |
timeout-minutes: 2 | |
with: | |
cid: ${{ steps.upload.outputs.hash }} | |
seeds: ${{ secrets.CRUST_SEEDS }} | |
- name: Convert CIDv0 to CIDv1 | |
id: convert_cidv0 | |
uses: uniswap/convert-cidv0-cidv1@v1.0.0 | |
with: | |
cidv0: ${{ steps.upload.outputs.hash }} | |
- name: Update DNS with new IPFS hash | |
env: | |
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} | |
RECORD_DOMAIN: "gnosisguild.org" | |
RECORD_NAME: "_dnslink.exit" | |
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }} | |
uses: textileio/cloudflare-update-dnslink@0fe7b7a1ffc865db3a4da9773f0f987447ad5848 | |
with: | |
cid: ${{ steps.upload.outputs.hash }} | |
- name: update release | |
id: update_release | |
uses: tubone24/update_release@v1.3.1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
is_append_body: true | |
body: | | |
<br /> | |
IPFS hash of the deployment: | |
- CIDv0: `${{ steps.upload.outputs.hash }}` | |
- CIDv1: `${{ steps.convert_cidv0.outputs.cidv1 }}` | |
IPFS gateways: | |
- https://${{ steps.convert_cidv0.outputs.cidv1 }}.ipfs.dweb.link/ | |
- https://${{ steps.convert_cidv0.outputs.cidv1 }}.ipfs.cf-ipfs.com/ | |
- name: Deploy to Github Pages | |
uses: JamesIves/github-pages-deploy-action@v4.3.3 | |
with: | |
branch: gh-pages | |
folder: ./packages/exit-app/build |