1 parent f3db3c9 commit bc69355Copy full SHA for bc69355
1 file changed
.github/workflows/publish.yml
@@ -1,6 +1,9 @@
1
name: Publish
2
3
on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
release:
8
types: [published]
9
@@ -28,7 +31,7 @@ jobs:
28
31
python-version: "3.12"
29
32
cache: pip
30
33
- - name: Verify release tag matches package version
34
+ - name: Verify tag matches package version
35
run: |
36
python - <<'PY'
37
import os
@@ -41,7 +44,7 @@ jobs:
41
44
expected_tags = {version, f"v{version}"}
42
45
if tag not in expected_tags:
43
46
raise SystemExit(
- f"Release tag {tag!r} does not match pyproject version {version!r}. "
47
+ f"Tag {tag!r} does not match pyproject version {version!r}. "
48
f"Expected one of: {', '.join(sorted(expected_tags))}"
49
)
50
PY
0 commit comments