put artifacts in their own dir so unrelated files don't get uploaded

develop
Myk Taylor 2023-08-19 00:09:16 -07:00
parent 1e4594f8d5
commit 4e090d8fe0
No known key found for this signature in database
1 changed files with 5 additions and 3 deletions

@ -51,18 +51,20 @@ jobs:
cat release_body.md cat release_body.md
- name: Stage release - name: Stage release
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
- name: Prep artifact directory
run: mkdir artifacts
- name: Create win64 release archive - name: Create win64 release archive
run: | run: |
cd dfhack-windows64-build cd dfhack-windows64-build
zip -r ../dfhack-${{ steps.gettag.outputs.name }}-Windows-64bit.zip . zip -qr ../artifacts/dfhack-${{ steps.gettag.outputs.name }}-Windows-64bit.zip .
- name: Create linux64 release archive - name: Create linux64 release archive
run: | run: |
cd dfhack-linux64-build cd dfhack-linux64-build
tar cjf ../dfhack-${{ steps.gettag.outputs.name }}-Linux-64bit.tar.bz2 . tar cjf ../artifacts/dfhack-${{ steps.gettag.outputs.name }}-Linux-64bit.tar.bz2 .
- name: Create or update GitHub release - name: Create or update GitHub release
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
artifacts: "dfhack-*" artifacts: "artifacts/dfhack-*"
bodyFile: "release_body.md" bodyFile: "release_body.md"
allowUpdates: true allowUpdates: true
artifactErrorsFailBuild: true artifactErrorsFailBuild: true