From eccc1a2df17a6a39a628b76148ae0d925b2e01d2 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 6 Nov 2024 17:12:39 -0700 Subject: [PATCH] fix: Release-plz to perform the release and to use Commitizen for bumping and generating the CHANGELOG [skip ci] --- .github/workflows/release-minor.yml | 38 ------------------- .github/workflows/release-patch.yml | 2 +- .../{release-major.yml => release.yml} | 5 +-- 3 files changed, 3 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/release-minor.yml rename .github/workflows/{release-major.yml => release.yml} (92%) diff --git a/.github/workflows/release-minor.yml b/.github/workflows/release-minor.yml deleted file mode 100644 index 3aaade6..0000000 --- a/.github/workflows/release-minor.yml +++ /dev/null @@ -1,38 +0,0 @@ -# Adapted from https://github.com/joshka/github-workflows/blob/main/.github/workflows/rust-release-plz.yml -# Thanks to joshka for permission to use this template! - -name: Create minor release - -permissions: - pull-requests: write - contents: write - -on: - workflow_dispatch: - -jobs: - release-plz: - # see https://release-plz.ieni.dev/docs/github - # for more information - name: Release-plz - runs-on: ubuntu-latest - steps: - - name: Check if actor is repository owner - if: ${{ github.actor != github.repository_owner }} - run: | - echo "You are not authorized to run this workflow." - exit 1 - - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Install Rust stable - uses: dtolnay/rust-toolchain@stable - - name: Run release-plz - uses: MarcoIeni/release-plz-action@v0.5 - with: - command: release --bump-minor - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.github/workflows/release-patch.yml b/.github/workflows/release-patch.yml index 0a5fda1..2dbafe1 100644 --- a/.github/workflows/release-patch.yml +++ b/.github/workflows/release-patch.yml @@ -32,7 +32,7 @@ jobs: - name: Run release-plz uses: MarcoIeni/release-plz-action@v0.5 with: - command: release --bump-patch + command: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.github/workflows/release-major.yml b/.github/workflows/release.yml similarity index 92% rename from .github/workflows/release-major.yml rename to .github/workflows/release.yml index 6988488..24cd8d3 100644 --- a/.github/workflows/release-major.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,7 @@ # Adapted from https://github.com/joshka/github-workflows/blob/main/.github/workflows/rust-release-plz.yml # Thanks to joshka for permission to use this template! -name: Create major release +name: Create patch release permissions: pull-requests: write @@ -31,8 +31,7 @@ jobs: uses: dtolnay/rust-toolchain@stable - name: Run release-plz uses: MarcoIeni/release-plz-action@v0.5 - with: - command: release --bump-major + command: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}