File tree Expand file tree Collapse file tree 3 files changed +42
-9
lines changed
Expand file tree Collapse file tree 3 files changed +42
-9
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+
3+ permissions :
4+ pull-requests : write
5+ contents : write
6+
7+ on :
8+ workflow_dispatch :
9+ push :
10+ branches :
11+ - main
12+
13+ jobs :
14+ release-plz :
15+ name : Release-plz
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0
22+ - name : Install Rust toolchain
23+ uses : dtolnay/rust-toolchain@stable
24+ - name : Run release-plz
25+ 26+ env :
27+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
Original file line number Diff line number Diff line change @@ -41,9 +41,14 @@ Then :
4141- copy trace_id from log (or response header)
4242- paste into Jaeger web UI
4343
44+
4445## To release
4546
47+ Use the github workflow ` release ` .
48+
49+ <!--
4650```sh
4751#cargo ws publish --tag-prefix "" "prepatch" --all --no-individual-tags
4852just release "minor"
4953```
54+ -->
Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ tinstall_cst: _install_cargo-nextest _install_cargo-insta
3535 cargo nextest run
3636 cargo test --doc
3737
38- changelog : _install_git-cliff
39- git-cliff -o " CHANGELOG.md"
40- git add CHANGELOG.md && git commit -m " 📝 update CHANGELOG"
41-
42- release * arguments : _install_cargo-release _install_git-cliff
43- cargo release --workspace --execute {{ arguments }}
44- # git-cliff could not be used as `pre-release-hook` of cargo-release because it uses tag
45- git-cliff -o " CHANGELOG.md"
46- git add CHANGELOG.md && git commit -m " 📝 update CHANGELOG" && git push
38+ # changelog: _install_git-cliff
39+ # git-cliff -o "CHANGELOG.md"
40+ # git add CHANGELOG.md && git commit -m "📝 update CHANGELOG"
41+
42+ # release *arguments: _install_cargo-release _install_git-cliff
43+ # cargo release --workspace --execute {{ arguments }}
44+ # # git-cliff could not be used as `pre-release-hook` of cargo-release because it uses tag
45+ # git-cliff -o "CHANGELOG.md"
46+ # git add CHANGELOG.md && git commit -m "📝 update CHANGELOG" && git push
4747
4848_ container * arguments :
4949 if [ -x " $(command -v podman)" ]; then \
You can’t perform that action at this time.
0 commit comments