Skip to content

Commit eb04891

Browse files
committed
use release-plz action directly for release prep
Signed-off-by: pbio <[email protected]>
1 parent cfa48de commit eb04891

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.github/workflows/rust-release.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,14 @@ jobs:
4242
- uses: actions/checkout@v4
4343
with:
4444
fetch-depth: 0
45-
- uses: dtolnay/rust-toolchain@stable
46-
- uses: actions/cache@v4
47-
with:
48-
path: ~/.cargo/registry/index
49-
key: cargo-registry-${{ hashFiles('**/Cargo.lock') }}
50-
restore-keys: cargo-registry-
51-
- name: Install release-plz
52-
run: cargo install release-plz --locked
5345
- name: Run release-plz
54-
working-directory: ./rust/main
46+
uses: release-plz/[email protected]
47+
with:
48+
command: release-pr
49+
manifest_path: rust/main/Cargo.toml
50+
config: rust/main/release-plz.toml
5551
env:
5652
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
run: |
58-
git config user.name "github-actions[bot]"
59-
git config user.email "github-actions[bot]@users.noreply.github.com"
60-
release-plz release-pr \
61-
--git-token "$GITHUB_TOKEN" \
62-
--backend github \
63-
--repo-url "${{ github.repository }}"
6453
- name: Summary
6554
if: always()
6655
run: |

0 commit comments

Comments
 (0)