Skip to content

Commit 22e7314

Browse files
authored
Merge pull request #4370 from tgross35/ctest-release
Configure ctest to release via release-plz
2 parents d38a5f0 + 98f04ba commit 22e7314

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# release-plz for the stable 0.2 branch
2+
3+
name: Release-plz
4+
5+
permissions:
6+
pull-requests: write
7+
contents: write
8+
9+
on:
10+
push:
11+
branches:
12+
- main
13+
14+
jobs:
15+
release-plz:
16+
name: Release-plz
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Install Rust (rustup)
24+
run: rustup update stable --no-self-update && rustup default stable
25+
- name: Run release-plz
26+
uses: MarcoIeni/[email protected]
27+
with:
28+
# On the main branch, only release ctest
29+
manifest_path: ctest/Cargo.toml
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.release-plz.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
[workspace]
1+
[[package]]
2+
name = "libc"
3+
changelog_path = "CHANGELOG.md"
24
git_release_name = "{{ version }}"
35
git_tag_name = "{{ version }}"
46

7+
[[package]]
8+
name = "ctest"
9+
changelog_path = "ctest/CHANGELOG.md"
10+
git_release_name = "ctest-{{ version }}"
11+
git_tag_name = "ctest-{{ version }}"
12+
513
[changelog]
614
body = """
715
## [{{ version | trim_start_matches(pat="v") }}]\

0 commit comments

Comments
 (0)