Skip to content

Commit 7f7ac84

Browse files
committed
chore: move to rust specific release-plz
1 parent 1b7e5ca commit 7f7ac84

File tree

2 files changed

+52
-21
lines changed

2 files changed

+52
-21
lines changed

.github/workflows/release-please.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/release-plz.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Cargo Release
2+
permissions:
3+
pull-requests: write
4+
contents: write
5+
on:
6+
push:
7+
branches:
8+
- main
9+
jobs:
10+
verify:
11+
uses: ./.github/workflows/rust-package.yml
12+
# Release unpublished packages.
13+
release-plz-release:
14+
needs: verify
15+
name: Release-plz release
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: release-plz/action@v0.5
26+
with:
27+
command: release
28+
env:
29+
CARGO_REGISTRY_TOKEN: ${{ secrets.RELEASE_PLEASE_CARGO }}
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
# Create a PR with the new versions and changelog, preparing the next release.
32+
release-plz-pr:
33+
needs: verify
34+
name: Release-plz PR
35+
runs-on: ubuntu-latest
36+
concurrency:
37+
group: release-plz-${{ github.ref }}
38+
cancel-in-progress: false
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
42+
with:
43+
fetch-depth: 0
44+
- name: Install Rust toolchain
45+
uses: dtolnay/rust-toolchain@stable
46+
- name: Run release-plz
47+
uses: release-plz/action@v0.5
48+
with:
49+
command: release-pr
50+
env:
51+
CARGO_REGISTRY_TOKEN: ${{ secrets.RELEASE_PLEASE_CARGO }}
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)