Skip to content

Commit 36c9bb0

Browse files
committed
switch to release-plz
1 parent e9cd83d commit 36c9bb0

File tree

2 files changed

+59
-86
lines changed

2 files changed

+59
-86
lines changed

.github/workflows/release-plz.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Release-plz
2+
3+
permissions:
4+
pull-requests: write
5+
contents: write
6+
7+
on:
8+
push:
9+
branches:
10+
- master
11+
12+
jobs:
13+
# Release unpublished packages.
14+
release-plz-release:
15+
name: Release-plz release
16+
runs-on: ubuntu-latest
17+
if: ${{ github.repository_owner == 'macalinao' }}
18+
permissions:
19+
contents: write
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
- name: Install Rust toolchain
26+
uses: dtolnay/rust-toolchain@stable
27+
- name: Run release-plz
28+
uses: release-plz/[email protected]
29+
with:
30+
command: release
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_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 == 'macalinao' }}
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+
- name: Checkout repository
48+
uses: actions/checkout@v4
49+
with:
50+
fetch-depth: 0
51+
- name: Install Rust toolchain
52+
uses: dtolnay/rust-toolchain@stable
53+
- name: Run release-plz
54+
uses: release-plz/[email protected]
55+
with:
56+
command: release-pr
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)