Skip to content

Commit 81a9aa7

Browse files
committed
Update actions
1 parent b347417 commit 81a9aa7

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/build_and_deploy_web_staging.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Build and Stage
33
on:
44
workflow_dispatch:
55

6+
env:
7+
BASE_HREF: "web-staging"
8+
REMOTE_DIR: "web-staging"
69
jobs:
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
2228
uses: wlixcc/[email protected]
2329
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

.github/workflows/build_web.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ jobs:
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:

0 commit comments

Comments
 (0)