Skip to content

Merge pull request #241 from gnosisguild/libs_migration #116

Merge pull request #241 from gnosisguild/libs_migration

Merge pull request #241 from gnosisguild/libs_migration #116

Workflow file for this run

name: Dev Continuous Deployment
on:
push:
branches: master
env:
VITE_INFURA_ID: ${{ secrets.VITE_INFURA_ID }}
VITE_ETHERSCAN_KEY: ${{ secrets.VITE_ETHERSCAN_KEY }}
VITE_GNOSISSCAN_KEY: ${{ secrets.VITE_GNOSISSCAN_KEY }}
VITE_POLYGONSCAN_KEY: ${{ secrets.VITE_POLYGONSCAN_KEY }}
VITE_BSCSCAN_KEY: ${{ secrets.VITE_BSCSCAN_KEY }}
VITE_OPTIMISTIC_ETHERSCAN_KEY: ${{ secrets.VITE_OPTIMISTIC_ETHERSCAN_KEY }}
VITE_ARBISCAN_KEY: ${{ secrets.VITE_ARBISCAN_KEY }}
VITE_SNOWTRACE_KEY: ${{ secrets.VITE_SNOWTRACE_KEY }}
VITE_MULTI_SEND_CONTRACT: "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761"
VITE_BACKEND_API_URL: "https://api.dev.zodiac.gnosisguild.org/api"
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy to Dev
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 21
- run: npm install -g yarn
- name: Install deps and build
working-directory: ./packages/app
run: |
yarn install --frozen-lockfile
yarn build
- name: Pin to IPFS
id: upload
uses: anantaramdas/ipfs-pinata-deploy-action@39bbda1ce1fe24c69c6f57861b8038278d53688d
with:
pin-name: Zodiac Safe App - Latest — ${ GITHUB_SHA }
path: "./packages/app/dist"
pinata-api-key: ${{ secrets.PINATA_API_KEY }}
pinata-secret-api-key: ${{ secrets.PINATA_API_SECRET_KEY }}
- name: Pin to Crust
uses: crustio/[email protected]
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/[email protected]
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.zodiac.dev"
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
uses: textileio/cloudflare-update-dnslink@0fe7b7a1ffc865db3a4da9773f0f987447ad5848
with:
cid: ${{ steps.upload.outputs.hash }}
- name: Get IPFS url
run: echo "IPFS gateways — https://${{ steps.convert_cidv0.outputs.cidv1 }}.ipfs.dweb.link/ or https://${{ steps.convert_cidv0.outputs.cidv1 }}.ipfs.cf-ipfs.com/"