File tree 5 files changed +464
-5
lines changed 5 files changed +464
-5
lines changed Original file line number Diff line number Diff line change 43
43
- run : yarn install --frozen-lockfile --verbose --network-concurrency 1
44
44
45
45
- run : yarn build
46
+ - name : Upload frontend build
47
+ uses : actions/upload-artifact@v4
48
+ with :
49
+ name : frontend
50
+ path : |
51
+ frontend/dist/spa
52
+ fleek.config.ts
46
53
tests :
47
54
runs-on : ubuntu-latest
48
55
steps :
@@ -152,3 +159,24 @@ jobs:
152
159
cd contracts-periphery
153
160
scopelint --version
154
161
scopelint check
162
+
163
+ deploy-to-fleek :
164
+ needs : [build]
165
+ runs-on : ubuntu-latest
166
+ env :
167
+ FLEEK_TOKEN : ${{ secrets.FLEEK_TOKEN }}
168
+ FLEEK_PROJECT_ID : ${{ secrets.FLEEK_PROJECT_ID }}
169
+ steps :
170
+ - name : Download frontend
171
+ uses : actions/download-artifact@v4
172
+ with :
173
+ name : frontend
174
+ - uses : volta-cli/action@v4
175
+ with :
176
+ cache : false
177
+ - name : Look at directory
178
+ run : ls -la
179
+ - name : Install Fleek CLI
180
+ run : volta run yarn global add @fleekxyz/cli
181
+ - name : Build & deploy sites
182
+ run : volta run fleek sites deploy
Original file line number Diff line number Diff line change
1
+ import { FleekConfig } from '@fleekxyz/cli' ;
2
+
3
+ export default {
4
+ "sites" : [
5
+ {
6
+ "slug" : "many-island-colossal" ,
7
+ "distDir" : "./frontend/dist/spa"
8
+ }
9
+ ]
10
+ } satisfies FleekConfig ;
Original file line number Diff line number Diff line change 1
1
[build ]
2
2
publish =" frontend/dist/spa/"
3
- environment = { NODE_VERSION = " 16.15 .0" , YARN_VERSION = " 1.22.18" }
3
+ environment = { NODE_VERSION = " 18.17 .0" , YARN_VERSION = " 1.22.18" }
4
4
command = " yarn build-frontend"
5
5
[build .processing ]
6
- skip_processing = true
6
+ skip_processing = true
Original file line number Diff line number Diff line change 19
19
"devDependencies" : {
20
20
"eslint" : " ^7.14.0" ,
21
21
"eslint-config-prettier" : " ^6.14.0" ,
22
+ "@fleekxyz/cli" : " 0.7.2" ,
22
23
"husky" : " ^4.3.0" ,
23
24
"lerna" : " ^3.22.1" ,
24
25
"lint-staged" : " ^10.5.1" ,
You can’t perform that action at this time.
0 commit comments