Skip to content

ci: harden publish version step#8

Merged
Shion1305 merged 1 commit into
mainfrom
shion/publish-version-from-tag-fix
Jan 27, 2026
Merged

ci: harden publish version step#8
Shion1305 merged 1 commit into
mainfrom
shion/publish-version-from-tag-fix

Conversation

@Shion1305
Copy link
Copy Markdown
Owner

@Shion1305 Shion1305 commented Jan 27, 2026

Summary

  • Fix the version regex used by the publish workflow so it matches pyproject.toml.
  • Keep the workflow tolerant when the version already matches the tag.

Context

The publish workflow failed with version field not found in pyproject.toml due to an over-escaped regex. This update uses a clean regex that matches the version = "..." line directly.

Changes

  • Use r'(?m)^version\s*=\s*["\']([^"\']+)["\']' to match the version field.

Testing

  • local regex check against pyproject.toml

@Shion1305 Shion1305 merged commit af77eb9 into main Jan 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant