From 82978c516cc824ba5d895a121bce2e02bcce0b47 Mon Sep 17 00:00:00 2001 From: bronsen Date: Sun, 22 Feb 2026 11:15:25 +0100 Subject: [PATCH] just: rewrite release recipe in fish closes #13 --- justfile | 40 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/justfile b/justfile index e85e3e0..af95755 100644 --- a/justfile +++ b/justfile @@ -66,43 +66,19 @@ bump segment: uv version --bump {{ segment }} [private] -release segment: - #!/usr/bin/env bash - export body=$(cat changelog.md) - export tag=$(uv version --short --output-format text --bump {{ segment }}) +release segment *release_name: + #!/usr/bin/env fish + test -f releasenotes.md; and set -l body "$(cat releasenotes.md)"; or set -l body "" + set -l tag (uv version --short --output-format text --bump {{ segment }}) git add pyproject.toml uv.lock git commit -m "Release version $tag" - git tag v$tag + git tag "v$tag" git push - git push origin tag v$tag + git push origin tag "v$tag" uv build --wheel --clear - fj release create "v$tag: $release_name" --tag "v$tag" --attach dist/*.whl --body "$body" - uv run twine upload --config-file ~/.config/pypirc --repository code.cbo dist/*.whl - - - - - - - - - - - - - - - - - - - - - - - -# + 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