Skip to content

Commit

Permalink
ci: fix pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
loiccoyle committed Jul 2, 2024
1 parent 4d487e1 commit 8b3eb9c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,22 @@ jobs:
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json

publish:
name: Publish to pypi
needs: tests
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-python@v5
if: ${{ steps.release.outputs.release_created }}
with:
python-version: "3.10"
- uses: abatilo/actions-poetry@v3
if: ${{ steps.release.outputs.release_created }}
with:
poetry-version: 1.8.2

- name: Configure Pypi token
if: ${{ steps.release.outputs.release_created }}
shell: bash
run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}

- name: Publish Package
if: ${{ steps.release.outputs.release_created }}
shell: bash
run: poetry publish --build

Expand Down

0 comments on commit 8b3eb9c

Please sign in to comment.