Skip to content

Commit ff5b7af

Browse files
committed
ci: improve release workflow with descriptive job names and simplified artifact upload
1 parent 9ff3496 commit ff5b7af

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
retention-days: 5
3232

3333
linux-amd64:
34+
name: Build Linux x86_64 binary
3435
runs-on: ubuntu-latest
3536
steps:
3637
- uses: actions/checkout@v4
@@ -59,6 +60,7 @@ jobs:
5960
retention-days: 5
6061

6162
linux-arm64:
63+
name: Build Linux aarch64 binary
6264
runs-on: ubuntu-24.04-arm
6365
steps:
6466
- uses: actions/checkout@v4
@@ -98,9 +100,6 @@ jobs:
98100
uses: actions/download-artifact@v4
99101
with:
100102
path: downloaded_artifacts
101-
102-
- name: Display structure of downloaded files
103-
run: ls -R downloaded_artifacts
104103

105104
- name: Prepare release binaries
106105
run: |
@@ -162,8 +161,12 @@ jobs:
162161
7z a -tzip -mx=9 "subtree.artifactbundle.zip" "${BUNDLE_DIR}"
163162
164163
- name: Upload release binaries
165-
uses: skx/github-action-publish-binaries@master
166164
env:
167165
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
168-
with:
169-
args: 'subtree_${{ github.event.release.tag_name }}_macos subtree_${{ github.event.release.tag_name }}_linux_x86_64 subtree_${{ github.event.release.tag_name }}_linux_arm64 subtree.artifactbundle.zip'
166+
run: |
167+
VERSION="${{ github.event.release.tag_name }}"
168+
gh release upload "${VERSION}" \
169+
"subtree_${VERSION}_macos" \
170+
"subtree_${VERSION}_linux_x86_64" \
171+
"subtree_${VERSION}_linux_arm64" \
172+
"subtree.artifactbundle.zip"

0 commit comments

Comments
 (0)