Add release-plz for automated releases
This commit is contained in:
29
library/compiler-builtins/libm/.github/workflows/publish.yml
vendored
Normal file
29
library/compiler-builtins/libm/.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: Release-plz
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release-plz:
|
||||||
|
name: Release-plz
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Install Rust (rustup)
|
||||||
|
run: rustup update nightly --no-self-update && rustup default nightly
|
||||||
|
- name: Publish `libm` as part of builtins, rather than its own crate
|
||||||
|
run: rm libm/Cargo.toml
|
||||||
|
- name: Run release-plz
|
||||||
|
uses: MarcoIeni/release-plz-action@v0.5
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
@@ -3,6 +3,7 @@ name = "cb"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Jorge Aparicio <jorge@japaric.io>"]
|
authors = ["Jorge Aparicio <jorge@japaric.io>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
publish = false
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
test = false
|
test = false
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ version = "0.1.0"
|
|||||||
authors = ["Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>"]
|
authors = ["Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
|
publish = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libm = { path = "../..", default-features = false }
|
libm = { path = "../..", default-features = false }
|
||||||
|
|||||||
Reference in New Issue
Block a user