Skip to content

Commit e19bc85

Browse files
authored
Merge pull request #107 from vdice/ci/checksums
2 parents 0675a9e + 2e46b09 commit e19bc85

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/workflows/release.yml

+9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414

15+
- name: set the release version (tag)
16+
run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
17+
1518
- name: Install Dependencies
1619
run: rustup target add wasm32-wasi
1720

@@ -21,6 +24,11 @@ jobs:
2124
- name: Build bart
2225
run: make bart
2326

27+
- name: generate checksums
28+
run: |
29+
sha256sum target/wasm32-wasi/release/bartholomew.wasm > checksums-${{ env.RELEASE_VERSION }}.txt
30+
sha256sum target/release/bart >> checksums-${{ env.RELEASE_VERSION }}.txt
31+
2432
- name: Create release
2533
uses: softprops/action-gh-release@v1
2634
with:
@@ -29,3 +37,4 @@ jobs:
2937
files: |
3038
target/wasm32-wasi/release/bartholomew.wasm
3139
target/release/bart
40+
checksums-${{ env.RELEASE_VERSION }}.txt

release-process.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ To cut a release of Bartholomew, you will need to do the following:
55
1. Create a pull request that changes the version number for your new version (e.g. 1.2.2 becomes 1.2.3)
66
- `Cargo.toml` and `bart/Cargo.toml` are the most important places to make this change
77
- Check the docs for hard-coded version strings
8-
2. Merge the PR created in #1 (Such PRs are still required to get approvals, so make sure you get signoff on the PR)
9-
3. Create a new tag with a `v` and then the version number (`v1.2.3`)
10-
4. Push the tag up to `main` on GitHub
8+
1. Merge the PR created in #1 (Such PRs are still required to get approvals, so make sure you get signoff on the PR)
9+
1. Create a new tag with a `v` and then the version number (`v1.2.3`)
10+
1. Push the tag to origin (eg `git push origin v1.2.3`)
1111
- This will trigger a release build
12-
5. Build WebAssembly binary, `batholomew.wasm`
13-
6. Generate SHAs with `shasum -a 256 bartholomew.wasm ` or a similar command
14-
7. Go to the GitHub [tags page](https://github.com/fermyon/bartholomew/releases) and create a release, adding release notes, and uploading `bartholomew.wasm`. The SHAs should go in the release notes.
12+
- The release build will attach the `bartholomew.wasm`, `bart` CLI and checksums file to the GitHub release
13+
- The release notes will be auto-generated, but you can edit as needed, for instance to alert about breaking changes or other notable items
1514

1615
At this point, you can just verify that all things are good.

0 commit comments

Comments
 (0)