Skip to content

Commit a740697

Browse files
authored
Merge pull request #5 from modern-python/chore/dogfood-semvertag
ci: dogfood semvertag against this repo
2 parents 24b330e + b19e7d5 commit a740697

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/semvertag.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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/"]'

0 commit comments

Comments
 (0)