Skip to content

Commit f1e4573

Browse files
authored
Add support for release-plz (#548)
* Add support for release-plz This adds initial support for release-plz and configures it to only produce a changelog for the timely crate. Signed-off-by: Moritz Hoffmann <antiguru@gmail.com> * Depend on crates columnation Signed-off-by: Moritz Hoffmann <antiguru@gmail.com> * Update secret name Signed-off-by: Moritz Hoffmann <antiguru@gmail.com> --------- Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
1 parent 5304752 commit f1e4573

File tree

4 files changed

+46
-1
lines changed

4 files changed

+46
-1
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
# Check for updates every Monday
6+
schedule:
7+
interval: "weekly"
8+

.github/workflows/release-plz.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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-plz:
14+
name: Release-plz
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Install Rust toolchain
22+
uses: actions-rust-lang/setup-rust-toolchain@v1
23+
- name: Run release-plz
24+
uses: MarcoIeni/release-plz-action@v0.5
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
CARGO_REGISTRY_TOKEN: ${{ secrets.RELEASE_PLZ_CARGO_TOKEN }}

container/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ license = "MIT"
66
edition.workspace = true
77

88
[dependencies]
9-
columnation = { git = "https://github.com/frankmcsherry/columnation" }
9+
columnation = "0.1"
1010
flatcontainer = "0.5"
1111
serde = { version = "1.0", features = ["derive"] }

release-plz.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[workspace]
2+
# disable the changelog for all packages
3+
changelog_update = false
4+
5+
[[package]]
6+
name = "timely"
7+
# enable the changelog for this package
8+
changelog_update = true
9+
# set the path of the changelog to the root of the repository
10+
changelog_path = "./CHANGELOG.md"

0 commit comments

Comments
 (0)