parent
0f18820f46
commit
82978c516c
1 changed files with 8 additions and 32 deletions
40
justfile
40
justfile
|
|
@ -66,43 +66,19 @@ bump segment:
|
||||||
uv version --bump {{ segment }}
|
uv version --bump {{ segment }}
|
||||||
|
|
||||||
[private]
|
[private]
|
||||||
release segment:
|
release segment *release_name:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env fish
|
||||||
export body=$(cat changelog.md)
|
test -f releasenotes.md; and set -l body "$(cat releasenotes.md)"; or set -l body ""
|
||||||
export tag=$(uv version --short --output-format text --bump {{ segment }})
|
set -l tag (uv version --short --output-format text --bump {{ segment }})
|
||||||
|
|
||||||
git add pyproject.toml uv.lock
|
git add pyproject.toml uv.lock
|
||||||
git commit -m "Release version $tag"
|
git commit -m "Release version $tag"
|
||||||
git tag v$tag
|
git tag "v$tag"
|
||||||
|
|
||||||
git push
|
git push
|
||||||
git push origin tag v$tag
|
git push origin tag "v$tag"
|
||||||
|
|
||||||
uv build --wheel --clear
|
uv build --wheel --clear
|
||||||
|
|
||||||
fj release create "v$tag: $release_name" --tag "v$tag" --attach dist/*.whl --body "$body"
|
fj release create "v$tag: $release_name" --pre-release --tag "v$tag" --attach dist/*.whl --body "$body"
|
||||||
uv run twine upload --config-file ~/.config/pypirc --repository code.cbo dist/*.whl
|
# uv run twine upload --config-file ~/.config/pypirc --repository code.cbo dist/*.whl
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue