forked from gnosisguild/zodiac-modifier-roles
-
Notifications
You must be signed in to change notification settings - Fork 3
98 lines (89 loc) · 4.39 KB
/
dev-cd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Dev Continuous Deployment
on:
push:
branches: main
env:
REACT_APP_ETHERSCAN_KEY: 6RJ8KT4B1S9V7E3CIYECNY7HFW8IPWQ3C4
REACT_APP_GNOSISSCAN_KEY: 8ENCUFT4D3XVJS7N9ZFS5Z9XQPNUGRKSN5
REACT_APP_POLYGONSCAN_KEY: NM937M1IZXVQ6QVDXS73XMF8JSAB677JWQ
REACT_APP_ARBISCAN_KEY: CSITWCYI9UDAJ7QS92FNVJ2XQP5B23P4J9
REACT_APP_BSCSCAN_KEY: AMXEAU3N9P7RJHFSZ7KAJDRY5MFJ1N29D6
REACT_APP_OPTIMISTICSCAN_KEY: 6RJ8KT4B1S9V7E3CIYECNY7HFW8IPWQ3C4
REACT_APP_SNOWTRACE_KEY: IAST9REKWMIW1QSE2M7K2IKKAZVNQPHC1U
REACT_APP_BASESCAN_KEY: EP2HURF81GKBPX1RQ37T91Z2WXKH4FT78Q
REACT_APP_INFURA_KEY: 0de1a96486754f8b98f284d093905198
REACT_APP_ONBOARD_JS_DAPP_ID: 30fd8cd4-93a1-4c0e-a463-b5eceb9a3956
REACT_APP_SUBGRAPH_BASE_URL: https://airlock.gnosisguild.org/api/v1/subgraph/
REACT_APP_SUBGRAPH_SEPOLIA: B1xxjy8WBWLkEo2pD7PDHM2LHLAryMdoWiH4kHLL4buP
REACT_APP_SUBGRAPH_GNOSIS_CHAIN: 9KdeUKvCupvXcRqbNt9HSX3idsiYdmt81XeAvffFEZA6
REACT_APP_SUBGRAPH_MAINNET: HYArYfPMEAawR5wFbr7qUVAgLbG9fpF91iwPVE6jKfLc
REACT_APP_SUBGRAPH_POLYGON: JDFgdGqUsDci3yv5HgEhFDFT65hmAtnnGgp4tN6nksGG
REACT_APP_SUBGRAPH_ARBITRUM: 5TLTw4whZvjbtQmzomRHJDrCX9VQ32mHSdrPN7oxdn4v
REACT_APP_SUBGRAPH_OPTIMISM: HMJik2c7BEXFy1gp7H3zK8TSqubzeGQ8sfZjgGbLJjwy
REACT_APP_SUBGRAPH_AVALANCHE: 6pVVa2Q53HRqQahiZLovV5AUN48nK28Cym6TRbw4ABP8
REACT_APP_SUBGRAPH_BSC: 7ffR3tdeVZ2SrHcnzCswBoqX7Zx4P4wkG9V6qEUomdU
REACT_APP_SUBGRAPH_BASE: DJTPvUAk3iyZzDhXhoFwH18qiUJDyS4LXDU9EfWBLEWB
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy to Dev
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
- run: npm install -g yarn
- run: yarn install --frozen-lockfile
- run: yarn build
# - name: Pin to IPFS
# id: upload
# uses: anantaramdas/ipfs-pinata-deploy-action@39bbda1ce1fe24c69c6f57861b8038278d53688d
# with:
# pin-name: Zodiac Roles App - Latest — ${ GITHUB_SHA }
# path: "./packages/app/build"
# verbose: true
# pinata-api-key: ${{ secrets.PINATA_API_KEY }}
# pinata-secret-api-key: ${{ secrets.PINATA_API_SECRET_KEY }}
# - 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.roles.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/"
# - name: Prep graph cli for deployment
# working-directory: packages/subgraph
# run: yarn run graph auth --product hosted-service ${{ secrets.GRAPH_ACCESS_TOKEN }}
# - name: Deploy subgraphs
# working-directory: packages/subgraph
# env:
# HOSTED_SERVICE_SUBGRAPH__GNOSIS_CHAIN: samepant/zodiac-roles-mod-gnosis-chain
# HOSTED_SERVICE_SUBGRAPH__ARBITRUM_ONE: samepant/zodiac-roles-mod-arbitrum
# HOSTED_SERVICE_SUBGRAPH__GOERLI: samepant/zodiac-roles-mod-goerli
# HOSTED_SERVICE_SUBGRAPH__SEPOLIA: samepant/zodiac-roles-mod-sepolia
# HOSTED_SERVICE_SUBGRAPH__AVALANCHE: samepant/zodiac-roles-mod-avalanche
# HOSTED_SERVICE_SUBGRAPH__BSC: samepant/zodiac-roles-mod-bsc
# HOSTED_SERVICE_SUBGRAPH__MAINNET: samepant/zodiac-roles-mod-mainnet
# HOSTED_SERVICE_SUBGRAPH__OPTIMISM: samepant/zodiac-roles-mod-optimism
# HOSTED_SERVICE_SUBGRAPH__POLYGON: samepant/zodiac-roles-mod-polygon
# # HOSTED_SERVICE_SUBGRAPH__OPTIMISM_ON_GNOSIS_CHAIN: samepant/zodiac-roles-mod_optimism-on-gnosis-chain
# run: |
# yarn deploy:arbitrum-one
# yarn deploy:gnosis-chain
# yarn deploy:goerli
# yarn deploy:sepolia
# yarn deploy:avalanche
# yarn deploy:bsc
# yarn deploy:mainnet
# yarn deploy:optimism
# yarn deploy:polygon
# # yarn deploy:optimism-on-gnosis-chain