1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Release-plz
on:
push:
branches:
permissions:
# Open/update the release PR and create GitHub Releases.
contents: write
pull-requests: write
env:
# purecrypto is a git dependency; fetch it via the git CLI.
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
# Don't run two release-plz jobs in parallel.
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
jobs:
release-plz-release:
name: Release-plz release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: release-plz/action@v0.5
with:
command: release
env:
# Use the stored release-plz token (org-level secret) so the release PR
# and any tags/releases it creates can trigger other workflows — the
# default GITHUB_TOKEN is blocked from triggering workflow runs.
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
release-plz-pr:
name: Release-plz PR
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: release-plz/action@v0.5
with:
command: release-pr
env:
# Use the stored release-plz token (org-level secret) so the release PR
# and any tags/releases it creates can trigger other workflows — the
# default GITHUB_TOKEN is blocked from triggering workflow runs.
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}