From 7ffc2043201aed2e0299df5f21b9a88e4da7f78c Mon Sep 17 00:00:00 2001 From: udonsari0101 <221926211+udonsari0101@users.noreply.github.com> Date: Mon, 30 Nov 2026 03:07:50 +0900 Subject: [PATCH] Align release version with image and guard tags --- .github/workflows/release.yml | 5 +++++ pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d344178..00a02a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,6 +42,11 @@ jobs: --repository "$GITHUB_REPOSITORY" --timeout-seconds 10200 git checkout --detach "$revision" test "$(git rev-parse HEAD)" = "$revision" + project_version="$(python3 -c 'import tomllib; print("v" + tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')" + if [ "$RELEASE_TAG" != "$project_version" ]; then + echo "Release tag $RELEASE_TAG does not match project version $project_version" >&2 + exit 1 + fi python3 scripts/package_local_release.py --version "$RELEASE_TAG" --commit "$revision" (cd dist && sha256sum --check "CTF_Agent-${RELEASE_TAG}-local-windows.zip.sha256") digest="$(python3 scripts/check_release_identity.py \ diff --git a/pyproject.toml b/pyproject.toml index 9a02fd5..3e5f634 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "ctf-agent-workspace" -version = "0.4.133" +version = "0.4.135" description = "CTF workspace, solver, attachment and notes management" requires-python = ">=3.12" dependencies = ["fastapi>=0.115,<1", "uvicorn>=0.34,<1", "python-multipart>=0.0.20,<1", "httpx>=0.28,<1", "cryptography>=50,<51", "py7zr>=1,<2"]