File tree Expand file tree Collapse file tree 3 files changed +11
-24
lines changed
Expand file tree Collapse file tree 3 files changed +11
-24
lines changed Original file line number Diff line number Diff line change 11name : Release
22
33on :
4- push :
5- branches :
6- - main
4+ workflow_dispatch :
5+ inputs :
6+ tags :
7+ description : Release Tag
8+ required : true
9+ type : string
710
811jobs :
912 release :
3336 pip install --constraint=.github/workflows/hatch-constraints.txt hatch
3437 hatch --version
3538
36- - name : Check if there is a parent commit
37- id : check-parent-commit
38- run : |
39- echo "::set-output name=sha::$(git rev-parse --verify --quiet HEAD^)"
40-
41- - name : Detect and tag new version
42- id : check-version
43- if : steps.check-parent-commit.outputs.sha
44- uses : salsify/action-detect-and-tag-new-version@v2
45- with :
46- version-command : |
47- bash -o pipefail -c "hatch version"
48-
49- - name : Bump version for developmental release
50- if : " ! steps.check-version.outputs.tag"
51- run : |
52- hatch version b
53-
5439 - name : Install UV
5540 uses : astral-sh/setup-uv@v5
5641
Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ requires-python = ">=3.9"
1919dependencies = []
2020
2121[tool .hatch .version ]
22- path = " src/human_readable/__about__.py"
22+ source = " vcs"
23+
24+ [tool .hatch .version .raw-options ]
25+ local_scheme = " no-local-version"
2326
2427[dependency-groups ]
2528dev = [
@@ -72,5 +75,5 @@ module = ["pytest_mock"]
7275ignore_missing_imports = true
7376
7477[build-system ]
75- requires = [" hatchling" ]
78+ requires = [" hatchling" , " hatch-vcs " ]
7679build-backend = " hatchling.build"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments