Skip to content

Commit

Permalink
💚 Update pypipublish.yaml to use token authentication for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
fbriol committed Jan 10, 2024
1 parent b4ca108 commit 3c3e3f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pypipublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools setuptools-scm twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
echo "[pypi]" > ~/.pypirc
echo "username = __token__" >> ~/.pypirc
echo "password = ${{ secrets.PYPI_PASSWORD }}" >> ~/.pypirc
python setup.py sdist
twine upload dist/*

0 comments on commit 3c3e3f6

Please sign in to comment.