Skip to content

Commit

Permalink
Merge pull request #2801 from vdice/chore/bump-artifact-actions
Browse files Browse the repository at this point in the history
chore(release.yml): bump artifact actions to v4; update usage
  • Loading branch information
rylev authored Sep 18, 2024
2 parents 21c66f4 + e550c82 commit 90a2adb
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,16 @@ jobs:
- name: upload binary as GitHub artifact
if: runner.os != 'Windows'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: spin
name: spin-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}
path: _dist/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz

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

- name: Configure AWS Credentials
Expand Down Expand Up @@ -205,16 +205,17 @@ jobs:
run: echo "RELEASE_VERSION=canary" >> $GITHUB_ENV

- name: download release assets
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: spin
pattern: spin-*
merge-multiple: true

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

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: spin
name: spin-checksums
path: checksums-${{ env.RELEASE_VERSION }}.txt

create-gh-release:
Expand All @@ -227,10 +228,11 @@ jobs:
- uses: actions/checkout@v3

- name: download release assets
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: spin
pattern: spin-*
path: _dist
merge-multiple: true

- name: check if pre-release
shell: bash
Expand Down Expand Up @@ -362,9 +364,9 @@ jobs:
spin-${{ env.RELEASE_VERSION }}-static-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz \
crt.pem spin.sig README.md LICENSE spin
- name: upload binary as GitHub artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: spin
name: spin-static-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}
path: _dist/spin-${{ env.RELEASE_VERSION }}-static-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz

dispatch-homebrew-tap:
Expand Down Expand Up @@ -409,9 +411,10 @@ jobs:
fi
- name: download release assets
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: spin
pattern: spin-*
merge-multiple: true

- name: extract binaries
shell: bash
Expand Down

0 comments on commit 90a2adb

Please sign in to comment.