diff --git a/.forgejo/workflows/main-build.yaml b/.forgejo/workflows/main-build.yaml index 186e350..df5bc54 100644 --- a/.forgejo/workflows/main-build.yaml +++ b/.forgejo/workflows/main-build.yaml @@ -37,7 +37,16 @@ jobs: run: flutter pub get - name: Build web - run: flutter build web --wasm --release + run: flutter build web --wasm --release --base-href /shitman/ + + # if the /webpub mount exists, copy the build output there + - name: Copy build output to /webpub + run: | + if [ -d /webpub ]; then + cp -r build/web/* /webpub/ + else + echo "No /webpub mount found, skipping copy." + fi - name: List build output run: ls -la build/web/