File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
- # To trigger this:
2
- # - go to Actions > Publish
3
- # - click the Run Workflow dropdown in the top-right
4
- name : Publish
5
- on : workflow_dispatch
1
+ # This is triggered after the Release workflow successfully completes its run
2
+ on :
3
+ workflow_run :
4
+ workflows :
5
+ - Release
6
+ types :
7
+ - completed
6
8
env :
7
9
CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
8
10
jobs :
9
11
cargo-publish :
10
12
runs-on : ubuntu-latest
13
+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
11
14
steps :
12
15
- name : Checkout sources
13
16
uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ cargo release [patch|minor] --no-publish --execute
563
563
This does the following:
564
564
565
565
- Bump the version.
566
- - Turn the ` Unreleased ` section of the changelog into the section for the version being published .
566
+ - Turn the ` Unreleased ` section of the changelog into the section for the version being released .
567
567
- Update the table of contents of the changelog using ` doctoc ` .
568
568
- Tag (` git tag ` ) the HEAD commit
569
569
- Push (` git push ` ) to GitHub
@@ -573,6 +573,10 @@ The `patch` and `minor` refer to semver concepts:
573
573
- ` patch ` would bump __ v0.68.1__ to __ v0.68.2__
574
574
- ` minor ` would bump __ v0.68.2__ to __ v0.69.0__
575
575
576
+ > NOTE:
577
+ > We use the ` --no-publish ` so that the crates are only published after the release is complete.
578
+ > This is automatic, provided the release CI job is successful.
579
+
576
580
### Create a new release on Github
577
581
578
582
The release is automated with the help of ` .github/workflows/release.yml ` ,
You can’t perform that action at this time.
0 commit comments