Skip to content

Commit bc69355

Browse files
fixed publish workflow
1 parent f3db3c9 commit bc69355

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Publish
22

33
on:
4+
push:
5+
tags:
6+
- "v*"
47
release:
58
types: [published]
69

@@ -28,7 +31,7 @@ jobs:
2831
python-version: "3.12"
2932
cache: pip
3033

31-
- name: Verify release tag matches package version
34+
- name: Verify tag matches package version
3235
run: |
3336
python - <<'PY'
3437
import os
@@ -41,7 +44,7 @@ jobs:
4144
expected_tags = {version, f"v{version}"}
4245
if tag not in expected_tags:
4346
raise SystemExit(
44-
f"Release tag {tag!r} does not match pyproject version {version!r}. "
47+
f"Tag {tag!r} does not match pyproject version {version!r}. "
4548
f"Expected one of: {', '.join(sorted(expected_tags))}"
4649
)
4750
PY

0 commit comments

Comments
 (0)