diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..e69de29 diff --git a/justfile b/justfile index 3d77840..b6725fd 100644 --- a/justfile +++ b/justfile @@ -64,3 +64,14 @@ ci: lint [private] 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