From bd8dc16fba032d668b19808f5935d10472d660af Mon Sep 17 00:00:00 2001 From: Yuyi Wang Date: Tue, 27 Jan 2026 23:18:15 +0800 Subject: [PATCH 1/2] ci: use release-plz to publish --- .github/workflows/release.yml | 54 +++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..db1a1d38 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,54 @@ +name: Release-plz + +on: + push: + branches: + - main + +jobs: + + # Release unpublished packages. + release-plz-release: + name: Release-plz release + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - &checkout + name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 + persist-credentials: false + - &install-rust + name: Install Rust toolchain + uses: dtolnay/rust-toolchain@nightly + - name: Run release-plz + uses: release-plz/action@v0.5 + with: + command: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + + # Create a PR with the new versions and changelog, preparing the next release. + release-plz-pr: + name: Release-plz PR + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'compio-rs' }} + permissions: + contents: write + pull-requests: write + concurrency: + group: release-plz-${{ github.ref }} + cancel-in-progress: false + steps: + - *checkout + - *install-rust + - name: Run release-plz + uses: release-plz/action@v0.5 + with: + command: release-pr + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} From 913bb09fa79b2656f8bf23da10f7a25ce0dfd12f Mon Sep 17 00:00:00 2001 From: Yuyi Wang Date: Wed, 28 Jan 2026 20:44:18 +0800 Subject: [PATCH 2/2] ci: rename to cd_release --- .github/workflows/{release.yml => cd_release.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{release.yml => cd_release.yml} (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/cd_release.yml similarity index 100% rename from .github/workflows/release.yml rename to .github/workflows/cd_release.yml