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