From b1ae4b44a6876396eb49ae677827a60c5f186590 Mon Sep 17 00:00:00 2001 From: Robert Schiele Date: Thu, 7 Mar 2024 08:57:22 +0100 Subject: [PATCH] make release artifact name unique --- .github/workflows/makefile.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 919c9c8ff..3146e7157 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -37,10 +37,11 @@ jobs: - name: Zip STL files if: github.event_name == 'release' run: | - zip -r stl-files.zip stl + mv stl stl-LDraw-${{ github.event.release.tag_name }} + zip -r stl-LDraw-${{ github.event.release.tag_name }}.zip stl-LDraw-${{ github.event.release.tag_name }} - name: Upload ZIP Artifact to Release if: github.event_name == 'release' run: | upload_url="${{ github.event.release.upload_url }}" - upload_url="${upload_url/\{?name,label\}/?name=stl-files.zip}" - curl -s -X POST -H "Authorization: Bearer ${{ secrets.MY_SECRET }}" -H "Content-Type: application/octet-stream" --data-binary "@stl-files.zip" "$upload_url" + upload_url="${upload_url/\{?name,label\}/?name=stl-LDraw-${{ github.event.release.tag_name }}.zip}" + curl -s -X POST -H "Authorization: Bearer ${{ secrets.MY_SECRET }}" -H "Content-Type: application/octet-stream" --data-binary "@stl-LDraw-${{ github.event.release.tag_name }}.zip" "$upload_url"