diff --git a/.forgejo/workflows/main-build.yaml b/.forgejo/workflows/main-build.yaml index df5bc54..4dd289f 100644 --- a/.forgejo/workflows/main-build.yaml +++ b/.forgejo/workflows/main-build.yaml @@ -7,6 +7,8 @@ jobs: build-web: # custom runner image -> includes node and latest flutter stable runs-on: flutter-web-builder + volumes: + - /webpub:/webpub steps: - name: Checkout code uses: actions/checkout@v4 @@ -39,6 +41,14 @@ jobs: - name: Build web 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 - name: Copy build output to /webpub run: |