File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
Expand file tree Collapse file tree 3 files changed +15
-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 @@ -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,10 @@ exclude = [
3333 " *.lock" ,
3434]
3535
36+ [tool .hatch .build .hooks .vcs ]
37+ version-file = " src/sublime_lib/_version.py"
38+ tag-pattern = " v{version}"
39+
3640[tool .coverage .run ]
3741omit = [
3842 " */tests/*" ,
You can’t perform that action at this time.
0 commit comments