Update build.yml
This commit is contained in:
@@ -3,7 +3,7 @@ name: Build Mission PBO
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, master]
|
branches: [main, master]
|
||||||
tags: ['v*']
|
tags: ["v*"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -18,23 +18,27 @@ jobs:
|
|||||||
|
|
||||||
- name: Pack mission folder into PBO
|
- name: Pack mission folder into PBO
|
||||||
run: |
|
run: |
|
||||||
docker run --rm --user "$(id -u):$(id -g)" \
|
docker run --name packer \
|
||||||
-v "${{ github.workspace }}:/workspace" \
|
-v "${{ github.workspace }}:/workspace:rw" \
|
||||||
-w /workspace \
|
-w /workspace \
|
||||||
arwynfr/armake2:debian \
|
arwynfr/armake2:debian \
|
||||||
pack /workspace "${{ env.PBO_NAME }}"
|
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
|
- name: Verify PBO integrity
|
||||||
run: |
|
run: |
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
--user "$(id -u):$(id -g)" \
|
|
||||||
-v "${{ github.workspace }}:/workspace" \
|
-v "${{ github.workspace }}:/workspace" \
|
||||||
-w /workspace \
|
-w /workspace \
|
||||||
arwynfr/armake2:debian \
|
arwynfr/armake2:debian \
|
||||||
inspect "./${{ env.PBO_NAME }}"
|
inspect "./${{ env.PBO_NAME }}"
|
||||||
|
|
||||||
- name: Debug list
|
|
||||||
run: ls -alh; echo "${{ github.workspace }}"; ls -alh ${{ github.workspace }}
|
|
||||||
|
|
||||||
- name: Upload PBO as artifact
|
- name: Upload PBO as artifact
|
||||||
uses: https://github.com/christopherHX/gitea-upload-artifact@v4
|
uses: https://github.com/christopherHX/gitea-upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user