Add release-plz for automated releases

This commit is contained in:
Trevor Gross
2024-10-26 17:57:24 -05:00
parent a2fc8fe534
commit 47961340db
3 changed files with 31 additions and 0 deletions

View 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 }}

View File

@@ -3,6 +3,7 @@ name = "cb"
version = "0.1.0"
authors = ["Jorge Aparicio <jorge@japaric.io>"]
edition = "2021"
publish = false
[lib]
test = false

View File

@@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>"]
edition = "2021"
license = "MIT OR Apache-2.0"
publish = false
[dependencies]
libm = { path = "../..", default-features = false }