Skip to content

Commit

Permalink
release zipfile and checksum file (spinframework#282)
Browse files Browse the repository at this point in the history
* release zipfile and checksum file

Signed-off-by: Matthew Fisher <[email protected]>

* use compact multi-line syntax

Signed-off-by: Matthew Fisher <[email protected]>

* update release process

Signed-off-by: Matthew Fisher <[email protected]>
  • Loading branch information
bacongobbler authored Mar 30, 2022
1 parent 2cd9434 commit 42d28bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,17 @@ jobs:
cp readme.md LICENSE ${{ matrix.config.targetDir }}/spin${{ matrix.config.extension }} _dist/
cd _dist
tar czf spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz readme.md LICENSE spin${{ matrix.config.extension }}
zip -r spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.zip readme.md LICENSE spin${{ matrix.config.extension }}
shasum -a 256 *.tar.gz *.zip > checksums-${{ env.RELEASE_VERSION }}.txt
- name: upload binary as GitHub artifact
uses: actions/upload-artifact@v1
with:
name: spin
path: _dist/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz
path: |
_dist/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz
_dist/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.zip
_dist/checksums-${{ env.RELEASE_VERSION }}.txt
- name: upload binary to canary GitHub release
uses: svenstaro/[email protected]
Expand All @@ -124,4 +129,4 @@ jobs:
prerelease: true
body: |
This is a "canary" release of the most recent commits on our main branch. Canary is **not stable**.
It is only intended for developers wishing to try out the latest features in Spin, some of which may not be fully implemented.
It is only intended for developers wishing to try out the latest features in Spin, some of which may not be fully implemented.
6 changes: 2 additions & 4 deletions docs/content/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ To cut a release of Spin, you will need to do the following:
- This will trigger a release build
1. Wait for the `release`
[action](https://github.com/fermyon/spin/actions/workflows/release.yaml) to
complete, and download the binary artifacts that are generated by that
action.
1. Generate SHAs of the Windows, Mac (`amd64` and `aarch64`), and Linux (`amd64`
and `aarch64`) binaries with `shasum -a 256` or a similar command
complete, and download the binary artifacts and checksums that are generated
by that action.
1. Go to the GitHub [tags page](https://github.com/fermyon/spin/releases) and
create a release, adding release notes, and uploading the binaries you
downloaded above. The SHAs should go in the release notes.
Expand Down

0 comments on commit 42d28bb

Please sign in to comment.