Skip to content

Commit

Permalink
Merge pull request #921 from DhanshreeA/master
Browse files Browse the repository at this point in the history
Use Poetry to publish to PyPI directly
  • Loading branch information
GemmaTuron authored Dec 19, 2023
2 parents 911528b + 2772421 commit 1a384ef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:
export POETRY_HOME=/opt/poetry
python3 -m venv $POETRY_HOME
$POETRY_HOME/bin/pip install poetry==1.2.0
$POETRY_HOME/bin/poetry --version
echo "${POETRY_HOME}/bin" >> $GITHUB_PATH
poetry --version
echo "Poetry successfully installed"
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

run: |
export POETRY_HOME=/opt/poetry
$POETRY_HOME/bin/poetry build
twine upload --verbose --skip-existing dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
poetry config -- http-basic.pypi $PYPI_USERNAME $PYPI_PASSWORD
poetry --build publish

0 comments on commit 1a384ef

Please sign in to comment.