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+
8+ jobs :
9+
10+ # Release unpublished packages.
11+ release-plz-release :
12+ name : Release-plz release
13+ runs-on : ubuntu-latest
14+ if : ${{ github.repository_owner == 'onsails' }}
15+ permissions :
16+ contents : write
17+ id-token : write
18+ steps :
19+ - &checkout
20+ name : Checkout repository
21+ uses : actions/checkout@v5
22+ with :
23+ fetch-depth : 0
24+ persist-credentials : false
25+ - &install-rust
26+ name : Install Rust toolchain
27+ uses : dtolnay/rust-toolchain@stable
28+ - name : Run release-plz
29+ uses : release-plz/action@v0.5
30+ with :
31+ command : release
32+ env :
33+ GITHUB_TOKEN : ${{ secrets.RELEASE_PLZ_TOKEN }}
34+
35+ # Create a PR with the new versions and changelog, preparing the next release.
36+ release-plz-pr :
37+ name : Release-plz PR
38+ runs-on : ubuntu-latest
39+ if : ${{ github.repository_owner == 'onsails' }}
40+ permissions :
41+ contents : write
42+ pull-requests : write
43+ concurrency :
44+ group : release-plz-${{ github.ref }}
45+ cancel-in-progress : false
46+ steps :
47+ - *checkout
48+ - *install-rust
49+ - name : Run release-plz
50+ uses : release-plz/action@v0.5
51+ with :
52+ command : release-pr
53+ env :
54+ GITHUB_TOKEN : ${{ secrets.RELEASE_PLZ_TOKEN }}
You can’t perform that action at this time.
0 commit comments