Skip to content

Commit 95b36b4

Browse files
committed
introduce release-plz
1 parent 257a1d4 commit 95b36b4

File tree

2 files changed

+58
-3
lines changed

2 files changed

+58
-3
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
version: 2
22
updates:
3-
- package-ecosystem: cargo
3+
- package-ecosystem: "cargo"
44
directory: "/"
55
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
6+
interval: "weekly"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

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

0 commit comments

Comments
 (0)