Commit c8cad29 1 parent 31717e4 commit c8cad29 Copy full SHA for c8cad29
File tree 3 files changed +27
-27
lines changed
3 files changed +27
-27
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Stage
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ build :
8
+ uses : ./.github/workflows/build_web.yaml
9
+
10
+ deploy :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Upload to SFTP
15
+ uses : wlixcc/SFTP-Deploy-Action@v1.2.4
16
+ with :
17
+ server : ${{ secrets.FTP_SERVER }}
18
+ username : ${{ secrets.FTP_USERNAME }}
19
+ password : ${{ secrets.FTP_PASSWORD }}
20
+ local_path : ./build/web/*
21
+ remote_path : staging.wonderous.app/web
22
+ sftp_only : true
Original file line number Diff line number Diff line change 1
- name : Build and Deploy Flutter Web App
1
+ name : Build Flutter Web
2
2
3
3
on :
4
- # push:
5
- # branches:
6
- # - main
7
4
workflow_dispatch :
8
5
9
6
jobs :
10
- build-and-deploy :
7
+ build :
11
8
runs-on : ubuntu-latest
12
9
13
10
steps :
27
24
run : flutter config --enable-web
28
25
29
26
- name : Build Flutter web app
30
- run : flutter build web --release -- wasm
27
+ run : flutter build web --wasm
31
28
32
- - name : Upload to SFTP
33
- uses : wlixcc/SFTP-Deploy-Action@v1.2.4
34
- with :
35
- server : ${{ secrets.FTP_SERVER }}
36
- username : ${{ secrets.FTP_USERNAME }}
37
- password : ${{ secrets.FTP_PASSWORD }}
38
- local_path : build/web/
39
- remote_path : /wonderous.app/web_test/
40
- sftp_only : true
29
+ - name : Update base href in index.html
30
+ run : sed -i 's|<base href="/">|<base href="/web/">|g' build/web/index.html
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments