Skip to content

Commit c2b0eee

Browse files
committed
👷 init release-plz
Signed-off-by: David Bernard <david.bernard.31@gmail.com>
1 parent 1303d10 commit c2b0eee

File tree

3 files changed

+42
-9
lines changed

3 files changed

+42
-9
lines changed

.github/workflows/release.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
uses: MarcoIeni/release-plz-action@v0.5
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

README.md

+5
Original file line numberDiff line numberDiff 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
4852
just release "minor"
4953
```
54+
-->

justfile

+9-9
Original file line numberDiff line numberDiff 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 \

0 commit comments

Comments
 (0)