Skip to content

Commit

Permalink
ci: fix order and failing uploads to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
FoSix committed Jun 21, 2023
1 parent 5c71d3a commit a9c3b8c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a9c3b8c

Please sign in to comment.