Merge pull request #643 from tgross35/ci-releases

Add `release-plz` for automatic releases.
This commit is contained in:
Amanieu d'Antras 2024-07-28 21:55:13 +01:00 committed by GitHub
commit 955e7724b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,30 @@
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
submodules: true
- 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

@ -0,0 +1,3 @@
[workspace]
changelog_update = false
semver_check = false

View file

@ -3,5 +3,6 @@ name = "panic-handler"
version = "0.1.0"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
edition = "2021"
publish = false
[dependencies]

View file

@ -3,6 +3,7 @@ name = "testcrate"
version = "0.1.0"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
edition = "2021"
publish = false
[lib]
test = false