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 = """ shell = """
quarto render --output-dir 05-final_paper quarto render --output-dir 05-final_paper
poe extract poe extract
poetry version minor VERSION="$(poetry version -s minor)"
VERSION="$(poetry version -s)"
git add pyproject.toml 02-data 05-final_paper git add pyproject.toml 02-data 05-final_paper
git commit -m "Publish version $VERSION" git commit -m "Publish version $VERSION"
git tag -a -m "new bundle for $(date -Isecond)" "$VERSION" git tag -a -m "new bundle for $(date -Isecond)" "$VERSION"