diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c56bb35..3191b54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -98,13 +98,11 @@ jobs: - name: Create Poetry venv run: poetry install - - name: Build and publish to PyPI + - name: Bump package version env: VERSION: ${{ needs.rc.outputs.ver }} - POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} run: | poetry version "${VERSION}" - poetry publish --build - name: Create release and publish to GitHub id: release @@ -117,6 +115,13 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Publish to PyPI + env: + POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} + run: | + poetry publish --build --skip-existing + + cleanup_pandev: name: Cleanup documentation release PRs @PAN.DEV runs-on: ubuntu-latest