From 8203c372a3e2c0a1ed000fdf419ab5dde6b81d47 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Thu, 15 Aug 2024 02:07:17 -0500 Subject: [PATCH] Add `release-plz` for the 0.2 branch This only enables the release PRs. We can enable publish once we verify that the results look correct. --- .github/workflows/publish_0.2.yml | 30 ++++++++++++++++++++++++++++++ .release-plz.toml | 2 ++ libc-test/Cargo.toml | 1 + 3 files changed, 33 insertions(+) create mode 100644 .github/workflows/publish_0.2.yml create mode 100644 .release-plz.toml diff --git a/.github/workflows/publish_0.2.yml b/.github/workflows/publish_0.2.yml new file mode 100644 index 0000000000000..78bef5e235b6a --- /dev/null +++ b/.github/workflows/publish_0.2.yml @@ -0,0 +1,30 @@ +# release-plz for the stable 0.2 branch + +name: Release-plz v0.2 + +permissions: + pull-requests: write + contents: write + +on: + push: + branches: + - libc-0.2 + +jobs: + release-plz: + name: Release-plz v0.2 + 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: Run release-plz + uses: MarcoIeni/release-plz-action@v0.5 + with: + command: release-pr + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.release-plz.toml b/.release-plz.toml new file mode 100644 index 0000000000000..8868315fab2c6 --- /dev/null +++ b/.release-plz.toml @@ -0,0 +1,2 @@ +[workspace] +git_tag_name = "v{{ version }}" diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index 9705c2ef1151a..843cd89fccdb7 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -5,6 +5,7 @@ edition = "2018" authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" build = "build.rs" +publish = false repository = "https://github.com/rust-lang/libc" homepage = "https://github.com/rust-lang/libc" description = """