Skip to content

Commit

Permalink
Merge pull request #581 from gefyrahq/adapt-pypi-publish
Browse files Browse the repository at this point in the history
chore: adapt pypi publish
  • Loading branch information
SteinRobert committed Apr 15, 2024
2 parents cd5af12 + fa2e2ee commit 9d2f9d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
name: Upload Python Package

on:
workflow_dispatch: {}
release:
types: [published]

Expand All @@ -20,10 +21,10 @@ jobs:
uses: snok/install-poetry@v1
- name: Build and publish
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
working-directory: client/
run: |
poetry config pypi-token.pypi $PYPI_API_TOKEN
poetry build
poetry publish

0 comments on commit 9d2f9d3

Please sign in to comment.