Skip to content

Commit

Permalink
Merge pull request #920 from DhanshreeA/master
Browse files Browse the repository at this point in the history
Fix Poetry installation in PyPI publish workflow
  • Loading branch information
GemmaTuron authored Dec 19, 2023
2 parents 1290663 + 7245add commit b0dd7e5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ jobs:
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
source $HOME/.poetry/env
echo `poetry --version`
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 successfully installed"
- name: Build and publish
Expand All @@ -43,6 +42,6 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

run: |
source $HOME/.poetry/env
poetry build
export POETRY_HOME=/opt/poetry
$POETRY_HOME/bin/poetry build
twine upload --verbose --skip-existing dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD

0 comments on commit b0dd7e5

Please sign in to comment.