Skip to content

Commit 7f77057

Browse files
committed
ci: fix release workflow race condition with artifact upload
1 parent 54cf01f commit 7f77057

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
build-release:
12+
build:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
fail-fast: false
@@ -70,6 +70,24 @@ jobs:
7070
rm cimis
7171
fi
7272
73+
- name: Upload artifact
74+
uses: actions/upload-artifact@v4
75+
with:
76+
name: cimis-${{ matrix.os }}-${{ matrix.arch }}
77+
path: dist/*
78+
retention-days: 1
79+
80+
release:
81+
needs: build
82+
runs-on: ubuntu-latest
83+
steps:
84+
- name: Download all artifacts
85+
uses: actions/download-artifact@v4
86+
with:
87+
path: dist
88+
pattern: cimis-*
89+
merge-multiple: true
90+
7391
- name: Generate checksums
7492
run: |
7593
cd dist
@@ -84,7 +102,6 @@ jobs:
84102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85103

86104
- name: Update Homebrew Tap
87-
if: matrix.os == 'darwin' && matrix.arch == 'arm64'
88105
env:
89106
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
90107
run: |

0 commit comments

Comments
 (0)