Skip to content

Commit c50944e

Browse files
committed
Set up release-plz
Add a release-plz workflow and ensure that all unneeded packages are marked `publish = false`. We should get both the release PRs and the automatic publish on version changes.
1 parent 9d2c34e commit c50944e

File tree

6 files changed

+32
-0
lines changed

6 files changed

+32
-0
lines changed

.github/workflows/publish.yml

+27
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-24.04
16+
steps:
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]
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

crates/cpp_smoke_test/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.1.0"
44
authors = ["Nick Fitzgerald <[email protected]>"]
55
edition = "2021"
66
build = "build.rs"
7+
publish = false
78

89
[build-dependencies]
910
cc = "1.0"

crates/debuglink/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "debuglink"
33
version = "0.1.0"
44
edition = "2021"
5+
publish = false
56

67
[dependencies]
78
backtrace = { path = "../.." }

crates/line-tables-only/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "line-tables-only"
33
version = "0.1.0"
44
edition = "2021"
5+
publish = false
56

67
[build-dependencies]
78
cc = "1.0"

crates/macos_frames_test/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "macos_frames_test"
33
version = "0.1.0"
44
authors = ["Aaron Hill <[email protected]>"]
55
edition = "2021"
6+
publish = false
67

78
[dependencies.backtrace]
89
path = "../.."

crates/without_debuginfo/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "without_debuginfo"
33
version = "0.1.0"
44
authors = ["Alex Crichton <[email protected]>"]
55
edition = "2021"
6+
publish = false
67

78
[dependencies.backtrace]
89
path = "../.."

0 commit comments

Comments
 (0)