Skip to content

Commit

Permalink
πŸ’š Update pypipublish.yaml to use token authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
fbriol committed Jan 15, 2024
1 parent f909913 commit 6c4933d
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 packaging setuptools 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 6c4933d

Please sign in to comment.