just: we has a release thing now!
All checks were successful
ci/woodpecker/tag/workflow Pipeline was successful
All checks were successful
ci/woodpecker/tag/workflow Pipeline was successful
This commit is contained in:
parent
623dda64b7
commit
b622595c8e
2 changed files with 11 additions and 0 deletions
0
changelog.md
Normal file
0
changelog.md
Normal file
11
justfile
11
justfile
|
|
@ -64,3 +64,14 @@ ci: lint
|
||||||
[private]
|
[private]
|
||||||
bump segment:
|
bump segment:
|
||||||
uv version --bump {{ segment }}
|
uv version --bump {{ segment }}
|
||||||
|
|
||||||
|
[private]
|
||||||
|
release segment:
|
||||||
|
#!/usr/bin/bash
|
||||||
|
export tag=$(uv version --short --output-format text --frozen --bump {{ segment }})
|
||||||
|
export body=$(cat changelog.md)
|
||||||
|
git tag v$tag
|
||||||
|
uv build --wheel --clear
|
||||||
|
git push origin tag v$tag
|
||||||
|
fj release create "$tag" --draft --tag $tag --attach dist/*.whl --body "$body"
|
||||||
|
uv run twine upload --config-file ~/.config/pypirc --repository code.cbo dist/*.whl
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue