-
Notifications
You must be signed in to change notification settings - Fork 60
63 lines (49 loc) · 1.48 KB
/
ipfs-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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Deploy on Fleek
on:
push:
branches: [ "v2" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
env:
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }}
FLEEK_PROJECT_ID: ${{ secrets.FLEEK_PROJECT_ID }}
PERPS_OCT_KEY: ${{ secrets.PERPS_OCT_KEY }}
CHARTING_ACCESS_TOKEN: ${{ secrets.CHARTING_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.CHARTING_ACCESS_TOKEN }}
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.18.2
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Install Fleek CLI
run: pnpm i -g @fleek-platform/cli
- name: Set environment variables
run: pnpm setenv:v2
- name: Build all projects
env:
NODE_OPTIONS: "--max_old_space_size=8192"
run: NEXT_PUBLIC_HOST="ipfs" pnpm run build
- name: Deploy Berps
run: cd apps/perp && fleek sites deploy
- name: Deploy Bend
run: cd apps/lend && fleek sites deploy
- name: Deploy Hub
run: cd apps/hub && fleek sites deploy
- name: Deploy Honey
run: cd apps/honey && fleek sites deploy