Skip to content

Commit d051f77

Browse files
committed
feat(ci): cargo publish on release
1 parent adbdf28 commit d051f77

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,10 @@ jobs:
5151
tag: ${{ github.ref_name }}
5252
overwrite: true
5353
prerelease: true
54+
55+
publish:
56+
name: cargo publish
57+
runs-on: ubuntu-24.04-arm
58+
steps:
59+
- uses: actions/checkout@v4
60+
- run: cargo publish --locked --token ${{ secrets.CARGO_REGISTRY_TOKEN }}

.github/workflows/release_dispatch.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,9 @@ jobs:
5555
tag: ${{ github.event.inputs.tag }}
5656
overwrite: true
5757
prerelease: true
58+
publish:
59+
name: cargo publish
60+
runs-on: ubuntu-24.04-arm
61+
steps:
62+
- uses: actions/checkout@v4
63+
- run: cargo publish --locked --token ${{ secrets.CARGO_REGISTRY_TOKEN }}

documentation/src/developer_documentation/release_checklist.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ Make a pull request with the following changes:
2525
- Make sure to run `cargo publish --dry-run` and include the `Cargo.lock` crate
2626
version change in the release.
2727

28-
## Release on crates.io
29-
30-
- Publish the new crate on crates.io according to the [manual][3].
31-
3228
## Release on GitHub
3329

3430
- Create a [new release][4]. Click on `Choose a tag` button and create a new
@@ -44,6 +40,7 @@ Make a pull request with the following changes:
4440
- Verify that the new release is available in the GitHub Container Registry. Use
4541
`docker pull ghcr.io/chainsafe/forest:<version>`. Verify the tags in the
4642
[packages][7] list.
43+
- Verify that the new release is published to [crates.io](https://crates.io/crates/forest-filecoin).
4744

4845
[1]: https://keepachangelog.com/en/1.0.0/
4946
[2]: https://github.com/ChainSafe/forest/blob/main/Cargo.toml

0 commit comments

Comments
 (0)