Skip to content

Commit 90a2adb

Browse files
authored
Merge pull request #2801 from vdice/chore/bump-artifact-actions
chore(release.yml): bump artifact actions to v4; update usage
2 parents 21c66f4 + e550c82 commit 90a2adb

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -156,16 +156,16 @@ jobs:
156156
157157
- name: upload binary as GitHub artifact
158158
if: runner.os != 'Windows'
159-
uses: actions/upload-artifact@v3
159+
uses: actions/upload-artifact@v4
160160
with:
161-
name: spin
161+
name: spin-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}
162162
path: _dist/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz
163163

164164
- name: upload binary as GitHub artifact
165165
if: runner.os == 'Windows'
166-
uses: actions/upload-artifact@v3
166+
uses: actions/upload-artifact@v4
167167
with:
168-
name: spin
168+
name: spin-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}
169169
path: _dist/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.zip
170170

171171
- name: Configure AWS Credentials
@@ -205,16 +205,17 @@ jobs:
205205
run: echo "RELEASE_VERSION=canary" >> $GITHUB_ENV
206206

207207
- name: download release assets
208-
uses: actions/download-artifact@v3
208+
uses: actions/download-artifact@v4
209209
with:
210-
name: spin
210+
pattern: spin-*
211+
merge-multiple: true
211212

212213
- name: generate checksums
213214
run: sha256sum * > checksums-${{ env.RELEASE_VERSION }}.txt
214215

215-
- uses: actions/upload-artifact@v3
216+
- uses: actions/upload-artifact@v4
216217
with:
217-
name: spin
218+
name: spin-checksums
218219
path: checksums-${{ env.RELEASE_VERSION }}.txt
219220

220221
create-gh-release:
@@ -227,10 +228,11 @@ jobs:
227228
- uses: actions/checkout@v3
228229

229230
- name: download release assets
230-
uses: actions/download-artifact@v3
231+
uses: actions/download-artifact@v4
231232
with:
232-
name: spin
233+
pattern: spin-*
233234
path: _dist
235+
merge-multiple: true
234236

235237
- name: check if pre-release
236238
shell: bash
@@ -362,9 +364,9 @@ jobs:
362364
spin-${{ env.RELEASE_VERSION }}-static-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz \
363365
crt.pem spin.sig README.md LICENSE spin
364366
- name: upload binary as GitHub artifact
365-
uses: actions/upload-artifact@v3
367+
uses: actions/upload-artifact@v4
366368
with:
367-
name: spin
369+
name: spin-static-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}
368370
path: _dist/spin-${{ env.RELEASE_VERSION }}-static-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz
369371

370372
dispatch-homebrew-tap:
@@ -409,9 +411,10 @@ jobs:
409411
fi
410412
411413
- name: download release assets
412-
uses: actions/download-artifact@v3
414+
uses: actions/download-artifact@v4
413415
with:
414-
name: spin
416+
pattern: spin-*
417+
merge-multiple: true
415418

416419
- name: extract binaries
417420
shell: bash

0 commit comments

Comments
 (0)