From 5dbda066b35b2ace6a05a7534c8479708c540252 Mon Sep 17 00:00:00 2001 From: Naveen M K Date: Fri, 6 Nov 2020 19:29:12 +0530 Subject: [PATCH] add tokens --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0861337..99d810c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,12 +74,20 @@ jobs: name: wheels-${{ runner.os }} - name: Publish (Release) if: ${{ github.event_name== 'release' && runner.os == 'Linux' }} + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | + pip install twine python setup.py sdist twine upload dist/* - name: Publish (Release) if: github.event_name == 'release' + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | + pip install twine twine upload dist/*.whl twine upload dist/*.whl twine upload dist/*.whl