diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 5f5cd53..97beb5f 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -7,15 +7,6 @@ on: tags: - 'v*' workflow_dispatch: - inputs: - pypi_server: - description: 'PyPI Server' - required: true - default: 'Test PyPI' - type: choice - options: - - 'Test PyPI' - - 'PyPI' jobs: build_wheels: @@ -66,7 +57,7 @@ jobs: name: Publish to PyPI needs: [build_wheels, build_sdist] runs-on: ubuntu-latest - if: ${{ startsWith(github.ref, 'refs/tags/v') }} && ${{ github.event_name == 'workflow_dispatch' }} + if: ${{ startsWith(github.ref, 'refs/tags/v') }} steps: - name: Download artifacts uses: actions/download-artifact@v2 @@ -74,16 +65,10 @@ jobs: name: artifact path: dist - - name: Publish wheels to Test PyPI + - name: Publish dist to PyPI uses: pypa/gh-action-pypi-publish@v1.5.0 - if: ${{ github.events.inputs.pypi_server == 'Test PyPI' }} - with: - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ - - - name: Publish wheels to PyPI - uses: pypa/gh-action-pypi-publish@v1.5.0 - if: ${{ github.events.inputs.pypi_server == 'PyPI' }} with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} + # password: ${{ secrets.TEST_PYPI_API_TOKEN }} + # repository_url: https://test.pypi.org/legacy/