-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (34 loc) · 1.02 KB
/
deploy.yml
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
name: Deploy Code
on:
push:
branches:
- master
env:
node_version: 14
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/[email protected]
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/[email protected]
with:
node-version: ${{ env.node_version }}
- run: yarn --frozen-lockfile
env:
CI: true
- run: yarn build
env:
CI: false
- run: npx ipfs-deploy ./build -p infura -p pinata -d cloudflare -O -C
env:
IPFS_DEPLOY_PINATA__API_KEY: ${{ secrets.PINATA_KEY }}
IPFS_DEPLOY_PINATA__SECRET_API_KEY: ${{ secrets.PINATA_SECRET }}
IPFS_DEPLOY_CLOUDFLARE__API_TOKEN: ${{ secrets.CF_API_TOKEN }}
IPFS_DEPLOY_CLOUDFLARE__ZONE: ${{ secrets.CF_ZONE }}
IPFS_DEPLOY_CLOUDFLARE__RECORD: ${{ secrets.CF_RECORD }}