Merge pull request #47 from Splendide-Imaginarius/mkxp-z-actions-pull

GitHub Actions: Fix artifact upload for pull requests
This commit is contained in:
Splendide Imaginarius 2023-10-15 13:22:14 +00:00 committed by GitHub
commit 1e5f2ab9da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: mkxp-z.windows.${{github.ref_name}}-${{steps.short-sha.outputs.sha}}
name: mkxp-z.windows.${{github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name}}-${{steps.short-sha.outputs.sha}}
path: |
build/artifact/*.dll
build/artifact/*.exe
@ -127,7 +127,7 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: mkxp-z.linux.${{github.ref_name}}-${{steps.short-sha.outputs.sha}}
name: mkxp-z.linux.${{github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name}}-${{steps.short-sha.outputs.sha}}
path: build/local.zip
build-macos:
@ -177,5 +177,5 @@ jobs:
- name: Upload archive
uses: actions/upload-artifact@v3
with:
name: mkxp-z.macos.${{github.ref_name}}-${{steps.short-sha.outputs.sha}}
name: mkxp-z.macos.${{github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name}}-${{steps.short-sha.outputs.sha}}
path: build/Build/Products/Release/Z-universal.app.zip