Skip to content

Commit

Permalink
Fix PYPI upload mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
tnipen committed Oct 18, 2023
1 parent 277e247 commit 432ea20
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/check-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,11 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build package
run: python setup.py sdist --verbose

- name: Build and publish
env:

# Create an account on https://pypi.org/
# Add your user/password as secrets in the github repository.
# see https://docs.github.com/en/actions/reference/encrypted-secrets
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

run: |
python setup.py sdist --verbose
twine upload dist/* --verbose
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 432ea20

Please sign in to comment.