Skip to content

Commit

Permalink
Merge pull request #10 from thoth-pub/feature/isolate_twine
Browse files Browse the repository at this point in the history
Isolate twine with pipx
  • Loading branch information
ja573 authored Feb 3, 2022
2 parents 92f68e2 + c68d822 commit 4c6ed7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# Upgrade pip
python3 -m pip install --upgrade pip
# Install build deps
python3 -m pip install setuptools wheel twine==3.7.1
python3 -m pip install setuptools wheel
# If requirements.txt exists, install from it
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# Install the package from setup.py
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Build and publish to PyPI
run: |
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
pipx run twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 4c6ed7b

Please sign in to comment.