File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release-plz
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - v0.8.x
8+
9+ jobs :
10+ # Release unpublished packages.
11+ release-plz-release :
12+ name : Release-plz release
13+ runs-on : ubuntu-latest
14+ if : ${{ github.repository_owner == 'tokio-rs' }}
15+ permissions :
16+ contents : write
17+ pull-requests : read
18+ id-token : write
19+ steps :
20+ - &checkout
21+ name : Checkout repository
22+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
23+ with :
24+ fetch-depth : 0
25+ persist-credentials : false
26+ - &install-rust
27+ name : Install Rust toolchain
28+ uses : dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # stable
29+ with :
30+ toolchain : stable
31+ - name : Run release-plz
32+ uses : release-plz/action@1528104d2ca23787631a1c1f022abb64b34c1e11 # v0.5
33+ with :
34+ command : release
35+ env :
36+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37+
38+ # Create a PR with the new versions and changelog, preparing the next release.
39+ release-plz-pr :
40+ name : Release-plz PR
41+ runs-on : ubuntu-latest
42+ if : ${{ github.repository_owner == 'tokio-rs' }}
43+ permissions :
44+ contents : write
45+ pull-requests : write
46+ concurrency :
47+ group : release-plz-${{ github.ref }}
48+ cancel-in-progress : false
49+ steps :
50+ - *checkout
51+ - *install-rust
52+ - name : Run release-plz
53+ uses : release-plz/action@1528104d2ca23787631a1c1f022abb64b34c1e11 # v0.5
54+ with :
55+ command : release-pr
56+ env :
57+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ [workspace ]
2+ # Only release when the release PR is merged, not on every commit
3+ # https://release-plz.dev/docs/config#the-release_always-field
4+ release_always = false
5+
6+ # Label release PRs for easy identification
7+ # https://release-plz.dev/docs/config#the-pr_labels-field
8+ pr_labels = [" release" ]
You can’t perform that action at this time.
0 commit comments