From 79dfec98eec9041b881ff79ea7a53c3d8dbdee5c Mon Sep 17 00:00:00 2001 From: cmorganl Date: Tue, 5 Jan 2021 11:59:45 +0100 Subject: [PATCH] Fix token username --- .github/workflows/python-publish.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 43d48d6..38a289b 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -39,13 +39,11 @@ jobs: if: ${{ matrix.os == 'macos-latest' }} run: | python setup.py bdist_wheel - - name: Finalize dist dir for publishing + - name: Build and publish to PyPI + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | if [ -f dist/*linux_x86_64.whl ]; then rm dist/*linux_x86_64.whl; fi python setup.py sdist - - name: Publish package to PyPI - uses: pypa/gh-action-pypi-publish@master - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} - skip_existing: true + python -m twine upload --skip-existing dist/*.whl dist/*tar.gz;