This commit is contained in:
parent
a931a6aa4c
commit
170b38f051
1 changed files with 10 additions and 0 deletions
|
@ -7,6 +7,8 @@ jobs:
|
||||||
build-web:
|
build-web:
|
||||||
# custom runner image -> includes node and latest flutter stable
|
# custom runner image -> includes node and latest flutter stable
|
||||||
runs-on: flutter-web-builder
|
runs-on: flutter-web-builder
|
||||||
|
volumes:
|
||||||
|
- /webpub:/webpub
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -39,6 +41,14 @@ jobs:
|
||||||
- name: Build web
|
- name: Build web
|
||||||
run: flutter build web --wasm --release --base-href /shitman/
|
run: flutter build web --wasm --release --base-href /shitman/
|
||||||
|
|
||||||
|
- name: Empty webpub mount
|
||||||
|
run: |
|
||||||
|
if [ -d /webpub ]; then
|
||||||
|
rm -rf /webpub/*
|
||||||
|
else
|
||||||
|
echo "No /webpub mount found, skipping empty."
|
||||||
|
fi
|
||||||
|
|
||||||
# if the /webpub mount exists, copy the build output there
|
# if the /webpub mount exists, copy the build output there
|
||||||
- name: Copy build output to /webpub
|
- name: Copy build output to /webpub
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue