Skip to content

Commit 9dd6135

Browse files
committed
whenxuan: update the publish
1 parent 4c879bd commit 9dd6135

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Publish PySDKit to PyPI when a version tag is pushed, e.g. v0.4.31
1+
# Publish PySDKit to PyPI when a version tag is pushed, e.g. 0.4.31
2+
# (matches this repo's existing tag style: 0.4.30, 0.4.29, ... without a "v" prefix)
23
#
34
# One-time setup on PyPI (Trusted Publishing):
45
# 1. https://pypi.org/manage/project/PySDKit/settings/publishing/
@@ -12,16 +13,18 @@
1213
# Release steps:
1314
# 1. Bump pysdkit/__init__.py -> __version__ = "x.y.z"
1415
# 2. Commit and push to main
15-
# 3. Create and push a matching tag:
16-
# git tag v0.4.31
17-
# git push origin v0.4.31
16+
# 3. Create and push a matching tag (same style as before):
17+
# git tag 0.4.31
18+
# git push origin 0.4.31
1819

1920
name: Publish to PyPI
2021

2122
on:
2223
push:
2324
tags:
24-
- "v*"
25+
# Match tags like 0.4.31 (this repo's convention). Also accept v0.4.31.
26+
- "[0-9]+.[0-9]+.[0-9]+*"
27+
- "v[0-9]+.[0-9]+.[0-9]+*"
2528
workflow_dispatch:
2629

2730
permissions:

0 commit comments

Comments
 (0)