From 6fa02f454398b63436a88219d742a2cc83cc581e Mon Sep 17 00:00:00 2001 From: kampersanda Date: Sat, 30 May 2026 14:37:06 +0900 Subject: [PATCH 1/2] Bump version to 0.2.2 in Cargo.toml --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 02adff5..ee18a06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "python-vibrato" -version = "0.2.0" +version = "0.2.2" edition = "2021" [lib] From dd041355399efd75b24afb5d904175193d4ba985 Mon Sep 17 00:00:00 2001 From: kampersanda Date: Sat, 30 May 2026 14:54:23 +0900 Subject: [PATCH 2/2] Add check-release-version job to verify tag matches Cargo.toml version --- .github/workflows/CI.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8fe7159..e8d3455 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -11,6 +11,17 @@ on: - 'v*.*.*' jobs: + check-release-version: + if: "startsWith(github.ref, 'refs/tags/')" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Verify tag matches Cargo.toml version + run: | + TAG="${GITHUB_REF_NAME#v}" + VERSION="$(sed -n 's/^version = "\(.*\)"$/\1/p' Cargo.toml | head -n1)" + test "$TAG" = "$VERSION" + test: strategy: matrix: @@ -40,7 +51,7 @@ jobs: python -m doctest docs/source/examples.rst pack-sdist: - needs: [ test ] + needs: [ check-release-version, test ] if: "startsWith(github.ref, 'refs/tags/')" runs-on: ubuntu-latest steps: @@ -57,7 +68,7 @@ jobs: path: target/wheels pack-linux: - needs: [ test ] + needs: [ check-release-version, test ] if: "startsWith(github.ref, 'refs/tags/')" runs-on: ubuntu-latest strategy: @@ -82,7 +93,7 @@ jobs: path: target/wheels pack-windows: - needs: [ test ] + needs: [ check-release-version, test ] if: "startsWith(github.ref, 'refs/tags/')" runs-on: windows-latest strategy: @@ -107,7 +118,7 @@ jobs: path: target/wheels pack-macos: - needs: [ test ] + needs: [ check-release-version, test ] if: "startsWith(github.ref, 'refs/tags/')" runs-on: macos-latest steps: