From 4e090d8fe0bc2ac163d06538f7fed23dbba3764b Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sat, 19 Aug 2023 00:09:16 -0700 Subject: [PATCH] put artifacts in their own dir so unrelated files don't get uploaded --- .github/workflows/github-release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 2d1cc4f45..12f5cf4e4 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -51,18 +51,20 @@ jobs: cat release_body.md - name: Stage release uses: actions/download-artifact@v3 + - name: Prep artifact directory + run: mkdir artifacts - name: Create win64 release archive run: | 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 run: | 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 uses: ncipollo/release-action@v1 with: - artifacts: "dfhack-*" + artifacts: "artifacts/dfhack-*" bodyFile: "release_body.md" allowUpdates: true artifactErrorsFailBuild: true