-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (42 loc) · 1.28 KB
/
defi-main.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
45
46
47
48
49
50
name: defi main
on:
push:
branches:
- 'main'
jobs:
build_and_publish:
runs-on: ubuntu-latest
env:
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }}
FLEEK_PROJECT_ID: ${{ secrets.FLEEK_PROJECT_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Install Fleek CLI
run: pnpm add -g @fleek-platform/cli
- name: Build
env:
alchemy_id: ${{ secrets.VITE_ALCHEMY_ID_DEFI }}
gtm_container: ${{ secrets.VITE_GTM_CONTAINER_ID_DEFI }}
sentry_dns: ${{ secrets.VITE_SENTRY_DSN_DEFI }}
wc_project_id: ${{ secrets.VITE_WALLET_CONNECT_PROJECT_ID_DEFI }}
run: |
VITE_WALLET_CONNECT_PROJECT_ID=$wc_project_id \
VITE_ALCHEMY_ID=$alchemy_id \
VITE_GTM_CONTAINER_ID=$gtm_container \
VITE_SENTRY_DSN=$wc_project_id \
pnpm nx run defi:build:production
- name: Upload to IPFS
run: fleek storage add ./dist/apps/defi