Skip to content

Commit 7d118d9

Browse files
authored
fix(release): fix download-artifact paths (#4144)
The update to download-artifact broke the release workflow on PRs. This fixes it.
1 parent 4d8dd60 commit 7d118d9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ jobs:
182182
- run: just arch=${{ matrix.arch }} libc=${{ matrix.libc }} os=${{ matrix.os }} profile=${{ needs.meta.outputs.profile }} package
183183
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
184184
with:
185-
name: ${{ matrix.arch }}-${{ matrix.os }}-artifacts
185+
name: release-${{ matrix.arch }}-${{ matrix.os }}
186186
path: target/package/*
187187

188188
publish:
@@ -212,8 +212,10 @@ jobs:
212212
# Fetch the artifacts.
213213
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
214214
with:
215+
pattern: 'release-*'
215216
path: artifacts
216-
- run: du -h artifacts/**/*
217+
merge-multiple: true
218+
- run: du -h artifacts/*
217219
# Publish the release.
218220
- if: needs.meta.outputs.publish == 'true'
219221
run: git push origin "$TAG"
@@ -222,7 +224,7 @@ jobs:
222224
with:
223225
name: ${{ env.VERSION }}
224226
tag_name: ${{ env.TAG }}
225-
files: artifacts/**/*
227+
files: artifacts/*
226228
generate_release_notes: true
227229
prerelease: ${{ needs.meta.outputs.prerelease }}
228230
draft: ${{ needs.meta.outputs.draft }}

0 commit comments

Comments
 (0)