From 4a013b36073f114b17aecfb065ebe498ec1a1802 Mon Sep 17 00:00:00 2001 From: Kalvin Chau Date: Thu, 27 Feb 2025 09:57:29 -0800 Subject: [PATCH] ci: add release-plz to handle release https://release-plz.dev/docs/github/quickstart --- .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..c059e65b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: release mcp-sdk crates + +permissions: + pull-requests: write + contents: write + +on: + push: + branches: + - main + +jobs: + + # Create a PR with the new versions and changelog, preparing the next release. + release-plz-pr: + name: Release-plz PR + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + concurrency: + group: release-plz-${{ github.ref }} + cancel-in-progress: false + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + - 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 }}