just: require release notes when releasing
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
This commit is contained in:
parent
2229bc7b05
commit
ab355ddc06
1 changed files with 4 additions and 3 deletions
7
justfile
7
justfile
|
|
@ -1,5 +1,6 @@
|
||||||
the_app := "teilchensammler_cli.main"
|
the_app := "teilchensammler_cli.main"
|
||||||
uv_export_options := "--frozen --format requirements.txt --quiet --no-install-project"
|
uv_export_options := "--frozen --format requirements.txt --quiet --no-install-project"
|
||||||
|
releasenotes := "releasenotes.md"
|
||||||
|
|
||||||
[private]
|
[private]
|
||||||
default:
|
default:
|
||||||
|
|
@ -51,8 +52,7 @@ lint:
|
||||||
|
|
||||||
release *release_name:
|
release *release_name:
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
set -l release_name {{ release_name }}
|
test -f {{ releasenotes }}; and set -l body "$(cat {{ releasenotes }})"; or begin echo Release notes are missing!; exit 2; end
|
||||||
test -f releasenotes.md; and set -l body "$(cat releasenotes.md)"; or set -l body ""
|
|
||||||
set -l tag (uv version --short --output-format text)
|
set -l tag (uv version --short --output-format text)
|
||||||
|
|
||||||
git add pyproject.toml uv.lock
|
git add pyproject.toml uv.lock
|
||||||
|
|
@ -64,8 +64,9 @@ release *release_name:
|
||||||
|
|
||||||
just build
|
just build
|
||||||
|
|
||||||
fj release create "v$tag: $release_name" --tag "v$tag" --attach dist/*.whl --body "$body"
|
fj release create "v$tag: {{ release_name }}" --tag "v$tag" --attach dist/*.whl --body "$body"
|
||||||
# just upload
|
# just upload
|
||||||
|
mv {{ releasenotes }} {{ releasenotes }}.$tag
|
||||||
|
|
||||||
# builds a package
|
# builds a package
|
||||||
build:
|
build:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue