diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8425c56..77700a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,13 +78,13 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine - - name: Build and publish to pypi - env: - TWINE_USERNAME: ${{secrets.PYPI_USERNAME}} - TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}} + - name: Build the distribution run: | python setup.py sdist bdist_wheel - twine upload dist/* + - name: Upload to pypi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} - name: Build Windows GUI executable uses: JackMcKew/pyinstaller-action-windows@main with: