Skip to content

Commit

Permalink
make release artifact name unique
Browse files Browse the repository at this point in the history
  • Loading branch information
schiele committed Mar 7, 2024
1 parent 341f32e commit 07ce2a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 07ce2a8

Please sign in to comment.