fix: rename downloaded artifacts to platform-specific names for release
download-artifact preserves the original binary filename, not the artifact name. Add a rename step so release assets have descriptive platform-specific names (e.g., yellowjacket-linux-amd64).
This commit is contained in:
@@ -150,11 +150,17 @@ jobs:
|
|||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
merge-multiple: true
|
|
||||||
path: ${{ github.workspace }}/artifacts
|
path: ${{ github.workspace }}/artifacts
|
||||||
|
|
||||||
- name: List artifacts
|
- name: Prepare release assets
|
||||||
run: find ${{ github.workspace }}/artifacts -type f
|
working-directory: ${{ github.workspace }}/artifacts
|
||||||
|
run: |
|
||||||
|
mkdir -p release
|
||||||
|
cp yellowjacket-linux-amd64/yellowjacket release/yellowjacket-linux-amd64
|
||||||
|
cp yellowjacket-darwin-universal/yellowjacket-darwin-universal.app.zip release/yellowjacket-darwin-universal.app.zip
|
||||||
|
cp yellowjacket-windows-amd64.exe/yellowjacket.exe release/yellowjacket-windows-amd64.exe
|
||||||
|
echo "Release assets:"
|
||||||
|
ls -lh release/
|
||||||
|
|
||||||
- name: Upload assets to GitHub Release
|
- name: Upload assets to GitHub Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
@@ -165,6 +171,6 @@ jobs:
|
|||||||
tag_name: ${{ github.event.release.tag_name }}
|
tag_name: ${{ github.event.release.tag_name }}
|
||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
files: |
|
files: |
|
||||||
artifacts/yellowjacket-linux-amd64
|
artifacts/release/yellowjacket-linux-amd64
|
||||||
artifacts/yellowjacket-darwin-universal.app.zip
|
artifacts/release/yellowjacket-darwin-universal.app.zip
|
||||||
artifacts/yellowjacket-windows-amd64.exe
|
artifacts/release/yellowjacket-windows-amd64.exe
|
||||||
|
|||||||
Reference in New Issue
Block a user