Skip to content

Commit 7ea46eb

Browse files
committed
Use release-plz for releases
1 parent b0a5d89 commit 7ea46eb

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
1-
name: Release
1+
name: Release-plz
2+
3+
permissions:
4+
pull-requests: write
5+
contents: write
26

37
on:
4-
workflow_dispatch:
58
push:
6-
tags:
7-
- '*'
9+
branches:
10+
- main
811

912
jobs:
10-
publish:
11-
runs-on: ubuntu-latest
13+
release-plz:
14+
name: Release-plz
15+
runs-on: ubuntu-24.04
1216
steps:
13-
- uses: actions/checkout@v4
14-
- name: Publish to crates.io
15-
run: |
16-
cargo publish
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Install Rust (rustup)
22+
run: rustup update nightly --no-self-update && rustup default nightly
23+
- name: Run release-plz
24+
uses: MarcoIeni/[email protected]
1725
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1827
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)