File tree Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 11name : Publish Release
22
33on :
4- workflow_dispatch :
4+ push :
5+ tags :
6+ - v*
57
68jobs :
79 release :
2325 - name : Create release & upload wheel
2426 run : |
2527 version=$(uv version --short)
26- gh release create --generate-notes --latest -t "v${version} " "v${version} " dist/*.whl
28+ gh release create --generate-notes --latest -t "$GITHUB_REF_NAME " "$GITHUB_REF_NAME " dist/*.whl
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ __pycache__
44
55# build artifacts
66dist /
7+ _version.py
78
89# docs build artifacts
910/docs /html /
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ Highlights include:
3737
3838## Releasing a new version
3939
40- 1 . Bump version in ` pyproject.toml ` & commit it.
41- 3 . Push to origin.
42- 4 . On GitHub > Actions, run "release" action against ` master ` .
40+ 1 . Create a tag in the format ` v<major>.<minor>.<patch> `
41+ 2 . Push the tag to origin.
42+
43+ A github action should be created that builds a WHEEL file,
44+ creates a release for this tag
45+ and attaches the WHEEL file as an artifact.
Original file line number Diff line number Diff line change 11[project ]
22name = " sublime_lib"
3- version = " 1.6.0 "
3+ dynamic = [ " version " ]
44description = " Utility library for frequently used functionality in Sublime Text"
55readme = " README.md"
66license = {file = " LICENSE" }
@@ -33,6 +33,13 @@ exclude = [
3333 " *.lock" ,
3434]
3535
36+ [tool .hatch .version ]
37+ source = " vcs"
38+
39+ [tool .hatch .build .hooks .vcs ]
40+ version-file = " src/sublime_lib/_version.py"
41+ tag-pattern = " v{version}"
42+
3643[tool .coverage .run ]
3744omit = [
3845 " */tests/*" ,
You can’t perform that action at this time.
0 commit comments