fix(repo): Simplify version bumping

Bump and read version in one step instead of multiple
poetry calls.
This commit is contained in:
Marty Oehme 2024-01-06 10:51:23 +01:00
parent 6c45e9dd7c
commit 12ef4e39cd
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -48,8 +48,7 @@ help = "Extract, render, commit and version a finished artifact"
shell = """
quarto render --output-dir 05-final_paper
poe extract
poetry version minor
VERSION="$(poetry version -s)"
VERSION="$(poetry version -s minor)"
git add pyproject.toml 02-data 05-final_paper
git commit -m "Publish version $VERSION"
git tag -a -m "new bundle for $(date -Isecond)" "$VERSION"