File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : semvertag
2+
3+ # Dogfood semvertag against this repo. Auto-tags on push to main when the latest
4+ # commit is a merge from `feat/...` (minor bump) or `bugfix/`/`hotfix/...` (patch).
5+ # This repo's branch convention is `feat/...`, so SEMVERTAG_BRANCH_PREFIX__MINOR
6+ # overrides the default `feature/` mapping.
7+ #
8+ # The workflow only creates a tag — it does NOT trigger publish.yml (which fires
9+ # on GitHub release creation). To publish to PyPI, create a GitHub release pointed
10+ # at the auto-tagged commit.
11+
12+ on :
13+ push :
14+ branches : [main]
15+
16+ permissions :
17+ contents : write
18+
19+ concurrency :
20+ group : semvertag
21+ cancel-in-progress : false
22+
23+ jobs :
24+ tag :
25+ runs-on : ubuntu-latest
26+ steps :
27+ - uses : actions/checkout@v4
28+ with :
29+ fetch-depth : 0
30+ - uses : actions/setup-python@v5
31+ with :
32+ python-version : " 3.13"
33+ - run : pip install --quiet --no-cache-dir 'uv>=0.4,<1'
34+ - run : uvx 'semvertag>=0.3,<1' tag
35+ env :
36+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37+ SEMVERTAG_BRANCH_PREFIX__MINOR : ' ["feat/"]'
You can’t perform that action at this time.
0 commit comments