This repository was archived by the owner on Oct 12, 2023. It is now read-only.
forked from aave/aave-ui
-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (45 loc) · 1.31 KB
/
deploy.yml
File metadata and controls
55 lines (45 loc) · 1.31 KB
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
name: Deploy
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
on:
push:
branches:
- master
jobs:
deploy_ipfs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
- name: install
run: npm ci
- name: prepare env
run: cp ${ENV:-'.github/.env.staging'} .env
- name: build
run: npm run build
- name: pinata
id: pinata
env:
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
PINATA_SECRET_KEY: ${{ secrets.PINATA_SECRET_KEY }}
PIN_ALIAS: staging
run: node scripts/pin-pinata.js
- name: crust
uses: crustio/ipfs-crust-action@f51bf12d352d230e12bfd8fa00b07f1f6c7aa735
continue-on-error: true
timeout-minutes: 2
with:
cid: ${{ steps.pinata.outputs.hash }}
seeds: ${{ secrets.CRUST_SEEDS }}
- name: deploy
id: deploy
env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }}
HASH: ${{ steps.pinata.outputs.hash }}
CF_DEPLOYMENT_DOMAIN: staging.aave.com
run: node scripts/update-cloudflare.js