-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (37 loc) · 1.15 KB
/
ipfs.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
name: IPFS Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 16.15.1
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Install and Build 🔧
env:
VITE_INFURA_API_KEY: ${{ vars.VITE_INFURA_API_KEY }}
VITE_WALLETCONNECT_ID: ${{ vars.VITE_WALLETCONNECT_ID }}
VITE_ACTIVATE_POINTS_LEAVES_URL: ${{ vars.VITE_ACTIVATE_POINTS_LEAVES_URL }}
VITE_ENABLE_ACTIVATE_MIGRATION: ${{ vars.VITE_ENABLE_ACTIVATE_MIGRATION }}
run: |
yarn
yarn build
- name: IPFS (Infura)
uses: aquiladev/ipfs-action@master
with:
path: ./dist
service: infura
infuraProjectId: ${{ secrets.INFURA_PROJECT_ID }}
infuraProjectSecret: ${{ secrets.INFURA_PROJECT_SECRET }}
- name: IPFS (Pinata)
uses: aquiladev/ipfs-action@master
with:
path: ./dist
service: pinata
pinataKey: ${{ secrets.PINATA_KEY }}
pinataSecret: ${{ secrets.PINATA_SECRET }}