From 74c328b8d43082ec06eea122b2d2aa521051db6c Mon Sep 17 00:00:00 2001 From: MrFastwind Date: Sun, 14 Jun 2026 01:00:04 +0200 Subject: [PATCH] Update build.yml --- .gitea/workflows/build.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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