Skip to content

using token for pypi upload instead of password #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}