Skip to content

Commit

Permalink
fix(workflow): do not modify and commit the toml version, publish wit… (
Browse files Browse the repository at this point in the history
  • Loading branch information
msotho authored Nov 10, 2024
2 parents 48467a7 + 1655aeb commit 58caccf
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ jobs:
deploy:
permissions:
contents: read
id-token: write

runs-on: ubuntu-latest

Expand Down Expand Up @@ -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 "[email protected]"
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 }}

0 comments on commit 58caccf

Please sign in to comment.