From b5102a6649ab9b7c433e9c998a8aee2851e66007 Mon Sep 17 00:00:00 2001 From: Giovanni Ciatto Date: Sun, 5 May 2024 17:39:30 +0200 Subject: [PATCH] chore(ci): commit & push new version upon release --- .github/workflows/check.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 7f6bb32..b80e18a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -67,9 +67,18 @@ jobs: shell: bash run: poetry run python bump_version.py --apply | tee CHANGELOG.md + - name: Commit version change + shell: bash + run: | + git add pyproject.toml + git commit -m "chore(release): v.$(poetry version --short) [skip ci]" + - name: Build Python Package run: poetry build + - name: Push changes + run: git push + - name: Publish on TestPyPI run: poetry publish --repository pypi-test --username __token__ --password ${{ secrets.TEST_PYPI_TOKEN }}