Skip to content

Commit bd6a102

Browse files
authored
Merge pull request rust-lang#323 from tgross35/release-plz
Add release-plz for automated releases
2 parents e4934f1 + 442134f commit bd6a102

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 (rustup)
22+
run: rustup update nightly --no-self-update && rustup default nightly
23+
- name: Publish `libm` as part of builtins, rather than its own crate
24+
run: rm libm/Cargo.toml
25+
- name: Run release-plz
26+
uses: MarcoIeni/[email protected]
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

crates/compiler-builtins-smoke-test/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "cb"
33
version = "0.1.0"
44
authors = ["Jorge Aparicio <[email protected]>"]
55
edition = "2021"
6+
publish = false
67

78
[lib]
89
test = false

crates/libm-bench/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.1.0"
44
authors = ["Gonzalo Brito Gadeschi <[email protected]>"]
55
edition = "2021"
66
license = "MIT OR Apache-2.0"
7+
publish = false
78

89
[dependencies]
910
libm = { path = "../..", default-features = false }

0 commit comments

Comments
 (0)