We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a63cb7d commit b4fa611Copy full SHA for b4fa611
1 file changed
.github/workflows/publish.yml
@@ -37,6 +37,18 @@ jobs:
37
# We only need the project dependencies, no development deps
38
uv sync --no-default-groups
39
40
+ - name: Make sure pyproject.toml version matches git version
41
+ run: |
42
+ git_version=$(git describe)
43
+ pyproject_version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
44
+
45
+ if [ "$git_verson" != "$pyproject_version" ]; then
46
+ echo "The version specified in pyproject.toml ($pyproject_version) doesn't match the git version ($git_verson)"
47
+ echo "You most likely forgot to update pyproject.toml when publishing the release tag"
48
+ echo "You can fix this by updating the pyproject version and overwriting the git tag"
49
+ exit 1
50
+ fi
51
52
- name: Build the project
53
run: uv build
54
0 commit comments