-
Notifications
You must be signed in to change notification settings - Fork 70
44 lines (40 loc) · 1.26 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
38
39
40
41
42
43
44
name: Build and Deploy
on:
push:
branches:
- main
- ipfs
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 18.19.0
- name: Checkout Code
uses: actions/[email protected]
- name: Install and Build
env:
REACT_APP_SENTRY_DSN: ${{ vars.REACT_APP_SENTRY_DSN }}
REACT_APP_RPC_URL_1: ${{ vars.REACT_APP_RPC_URL_1 }}
REACT_APP_RPC_URL_5: ${{ vars.REACT_APP_RPC_URL_5 }}
REACT_APP_RPC_URL_137: ${{ vars.REACT_APP_RPC_URL_137 }}
REACT_APP_RPC_URL_59140: ${{ vars.REACT_APP_RPC_URL_59140 }}
REACT_APP_RPC_URL_59144: ${{ vars.REACT_APP_RPC_URL_59144 }}
run: |
yarn
yarn build
- name: IPFS (Pinata)
uses: aquiladev/ipfs-action@master
with:
path: ./build
service: pinata
pinataKey: ${{ secrets.PINATA_KEY }}
pinataSecret: ${{ secrets.PINATA_SECRET }}
- name: IPFS Deploy 🚀
uses: aquiladev/ipfs-action@master
with:
path: ./build
service: infura
infuraProjectId: ${{ secrets.INFURA_PROJECT_ID }}
infuraProjectSecret: ${{ secrets.INFURA_PROJECT_SECRET }}