From f7f686ae8f8c662518f081ff1b06fb4de7ca77a8 Mon Sep 17 00:00:00 2001 From: Thomas Rowlands <41603761+Thomas-Rowlands@users.noreply.github.com> Date: Mon, 9 Dec 2024 11:42:17 +0000 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4b55510..2fd9b98 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,8 @@ jobs: - name: Check package version matches tag run: | pkgver=$(poetry run python -c "import autocorpus; print(autocorpus.__version__, end='')") - + # NB: tag name must be prefixed by "v" (the default for GitHub Releases) + test v$pkgver = ${{ github.ref_name }} # Build package with Poetry - name: Build package