Skip to content

Commit

Permalink
using token for pypi upload instead of password (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigcat88 authored Jan 22, 2023
1 parent 8ea274d commit 5133601
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/py_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ name: (Py)Build and Publish to PyPi
on:
workflow_dispatch:

env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_PYPI_ARGS: ""

jobs:

wheels:
name: Build sdist and wheel
runs-on: ubuntu-latest
Expand Down Expand Up @@ -53,7 +47,9 @@ jobs:

- name: Publish wheels to PyPI
run: |
python3 -m pip install twine
ls -la dist/
twine upload ${{ env.TWINE_PYPI_ARGS }} --skip-existing dist/*.whl
twine upload ${{ env.TWINE_PYPI_ARGS }} dist/*tar.gz
python3 -m pip install twine
python3 -m twine upload --verbose --skip-existing dist/*.whl
python3 -m twine upload --verbose --skip-existing dist/*tar.gz
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 5133601

Please sign in to comment.