forked from yearn/yearn-finance
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.17 KB
/
deploy.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
name: Deployment
on:
push:
branches:
- master
jobs:
sync:
name: Deploy to IPFS
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Use Node 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install deps (with cache)
uses: bahmutov/npm-install@v1
- name: Generate build artifact
run: yarn build
env:
API_ENV: ${{ secrets.API_ENV }}
BLOCKNATIVE_DAPP_ID: ${{ secrets.BLOCKNATIVE_DAPP_ID }}
ETHERSCAN_APIKEY: ${{ secrets.ETHERSCAN_APIKEY }}
FORTMATIC_APIKEY: ${{ secrets.FORTMATIC_APIKEY }}
PORTIS_APIKEY: ${{ secrets.PORTIS_APIKEY }}
WEB3_PROVIDER_HTTPS: ${{ secrets.WEB3_PROVIDER_HTTPS }}
WEB3_PROVIDER_WSS: ${{ secrets.WEB3_PROVIDER_WSS }}
ZAPPER_APIKEY: ${{ secrets.ZAPPER_APIKEY }}
- name: Deploy to IPFS
id: deployment
uses: nymmrx/ipfs-deploy@master
with:
path: "./build"
pin-name: Yearn Finance V2
pinata-key: ${{ secrets.PINATA_KEY }}
pinata-secret: ${{ secrets.PINATA_SECRET }}