From 1655aeb0eeca161bd7d8e4a78685f03c80ae33ec Mon Sep 17 00:00:00 2001 From: Sechaba Mofokeng Date: Sun, 10 Nov 2024 15:47:38 +0200 Subject: [PATCH] fix(workflow): do not modify and commit the toml version, publish with the version --- .github/workflows/release.yml | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9675c98..28b454e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,6 @@ jobs: deploy: permissions: contents: read - id-token: write runs-on: ubuntu-latest @@ -43,27 +42,12 @@ jobs: virtualenvs-in-project: true installer-parallel: true - - name: Configure Git - run: | - git config --global user.name "newspy" - git config --global user.email "newspy@youremail.com" - git checkout release - - - name: Bump version - run: | - poetry version ${{ env.VERSION }} - - git add pyproject.toml - git commit -m "chore: bump version to ${{ env.VERSION }}" - git push origin release - - name: Install dependencies run: poetry install --no-interaction --no-root - - name: Install project - run: poetry install --no-interaction - - name: Build and publish run: | poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} poetry publish --build + env: + POETRY_VERSION: ${{ env.VERSION }}