From 3072d1e59d0de874c95653a6c8b51ffadc62304b Mon Sep 17 00:00:00 2001 From: SusieeTheFemboy <96988330+SusieeTheLinuxUser@users.noreply.github.com> Date: Sat, 7 Nov 2026 23:06:03 +0100 Subject: [PATCH] Bump to 0.1.0-alpha.4; stop a release whose tag doesn't match Cargo.toml The new update notice compares GitHub's latest tag with CARGO_PKG_VERSION. Tagging v0.1.0-alpha.4 on a build that still says alpha.3 would make every alpha.4 install say "Rig Hub 0.1.0-alpha.4 is out" forever. The release workflow now fails early when the tag and Cargo.toml disagree. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 5 +++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f821c92..1fe729f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + # the build reports Cargo.toml's version; a stale one makes the app say its own release "is out" + - name: tag matches Cargo.toml + if: startsWith(github.ref, 'refs/tags/') + shell: bash + run: test "${GITHUB_REF_NAME#v}" = "$(grep -m1 '^version' Cargo.toml | cut -d'"' -f2)" - uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} diff --git a/Cargo.lock b/Cargo.lock index 17f1438..aaa8184 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2886,7 +2886,7 @@ dependencies = [ [[package]] name = "rig-hub" -version = "0.1.0-alpha.3" +version = "0.1.0-alpha.4" dependencies = [ "anyhow", "dirs", diff --git a/Cargo.toml b/Cargo.toml index f718a96..96438f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rig-hub" -version = "0.1.0-alpha.3" +version = "0.1.0-alpha.4" edition = "2024" license = "GPL-3.0-or-later" description = "One app for your mouse, cooler LCD, headset and mic on Linux"