diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 9b6939a..3d7cddc 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -3,7 +3,7 @@ name: Build Mission PBO on: push: branches: [main, master] - tags: ['v*'] + tags: ["v*"] workflow_dispatch: env: @@ -18,23 +18,27 @@ jobs: - name: Pack mission folder into PBO run: | - docker run --rm --user "$(id -u):$(id -g)" \ - -v "${{ github.workspace }}:/workspace" \ + docker run --name packer \ + -v "${{ github.workspace }}:/workspace:rw" \ -w /workspace \ arwynfr/armake2:debian \ pack /workspace "${{ env.PBO_NAME }}" + docker cp packer:/workspace/${{ env.PBO_NAME }} . + + - name: Cleanup Packer Container + # if: always() garantisce l'esecuzione anche se i passaggi sopra falliscono + if: always() + run: | + docker rm -f packer || true + - name: Verify PBO integrity run: | docker run --rm \ - --user "$(id -u):$(id -g)" \ -v "${{ github.workspace }}:/workspace" \ -w /workspace \ arwynfr/armake2:debian \ inspect "./${{ env.PBO_NAME }}" - - - name: Debug list - run: ls -alh; echo "${{ github.workspace }}"; ls -alh ${{ github.workspace }} - name: Upload PBO as artifact uses: https://github.com/christopherHX/gitea-upload-artifact@v4