Skip to content

Commit

Permalink
ci: rename artifact before upload
Browse files Browse the repository at this point in the history
  • Loading branch information
georgik committed Jul 17, 2024
1 parent 8171203 commit d918140
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ jobs:
path: ./artifacts
merge-multiple: false

- name: Upload Release Assets
- name: Rename and Upload Release Assets
run: |
for file in ./artifacts/*/combined.bin; do
base_name=$(basename $(dirname "$file"))
gh release upload ${{ needs.create-release.outputs.upload_url }} "$file" --clobber --name "graphical_bootloader_${base_name}.bin"
mv "$file" "./artifacts/graphical_bootloader_${base_name}.bin"
gh release upload ${{ needs.create-release.outputs.upload_url }} "./artifacts/graphical_bootloader_${base_name}.bin" --clobber
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d918140

Please sign in to comment.