File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: Build and Stage
33on :
44 workflow_dispatch :
55
6+ env :
7+ BASE_HREF : " web-staging"
8+ REMOTE_DIR : " web-staging"
69jobs :
710 build :
811 uses : ./.github/workflows/build_web.yml
@@ -17,13 +20,16 @@ jobs:
1720 with :
1821 name : web-build
1922 path : build/web
20-
23+
24+ - name : Update base href in index.html
25+ run : sed -i 's|<base href="/">|<base href="/${{ env.BASE_HREF }}/">|g' build/web/index.html
26+
2127 - name : Upload to SFTP
22282329 with :
2430 server : ${{ secrets.FTP_SERVER }}
2531 username : ${{ secrets.FTP_USERNAME }}
2632 password : ${{ secrets.FTP_PASSWORD }}
2733 local_path : ./build/web/*
28- remote_path : staging. wonderous.app/web
34+ remote_path : wonderous.app/$REMOTE_DIR
2935 sftp_only : true
Original file line number Diff line number Diff line change 2727 - name : Build Flutter web app
2828 run : flutter build web --wasm
2929
30- - name : Update base href in index.html
31- run : sed -i 's|<base href="/">|<base href="/web/">|g' build/web/index.html
32-
3330 - name : Upload build artifact
3431 uses : actions/upload-artifact@v4
3532 with :
You can’t perform that action at this time.
0 commit comments