Skip to content

Commit 9a8bc84

Browse files
fix: Use gh CLI for reliable release asset downloads
- Add 30s delay for release assets to become available - Use gh release download instead of curl - Add fail-fast: false to continue verification on other platforms
1 parent ae49151 commit 9a8bc84

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
needs: release
3838
runs-on: ${{ matrix.os }}
3939
strategy:
40+
fail-fast: false
4041
matrix:
4142
include:
4243
- os: ubuntu-latest
@@ -54,18 +55,26 @@ jobs:
5455
shell: bash
5556
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
5657

58+
- name: Wait for release assets to be available
59+
shell: bash
60+
run: sleep 30
61+
5762
- name: Download release asset
5863
shell: bash
64+
env:
65+
GH_TOKEN: ${{ github.token }}
5966
run: |
60-
curl -sL -o release-asset "https://github.com/${{ github.repository }}/releases/download/${{ steps.tag.outputs.tag }}/${{ matrix.asset }}"
67+
gh release download "${{ steps.tag.outputs.tag }}" \
68+
--repo "${{ github.repository }}" \
69+
--pattern "${{ matrix.asset }}"
6170
6271
- name: Extract (tar.gz)
6372
if: matrix.os != 'windows-latest'
64-
run: tar -xzf release-asset
73+
run: tar -xzf "${{ matrix.asset }}"
6574

6675
- name: Extract (zip)
6776
if: matrix.os == 'windows-latest'
68-
run: unzip release-asset
77+
run: unzip "${{ matrix.asset }}"
6978

7079
- name: Verify help text
7180
shell: bash

0 commit comments

Comments
 (0)