Compare commits

...

2 commits

Author SHA1 Message Date
bronsen
ab355ddc06 just: require release notes when releasing
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
2026-02-22 19:35:22 +01:00
bronsen
2229bc7b05 git: ignore all our releasenotes 2026-02-22 19:30:47 +01:00
2 changed files with 5 additions and 4 deletions

2
.gitignore vendored
View file

@ -1,5 +1,5 @@
# we create this for the release message # we create this for the release message
releasenotes.md releasenotes.md*
# Created by https://www.toptal.com/developers/gitignore/api/python,vim # Created by https://www.toptal.com/developers/gitignore/api/python,vim
# Edit at https://www.toptal.com/developers/gitignore?templates=python,vim # Edit at https://www.toptal.com/developers/gitignore?templates=python,vim

View file

@ -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: