diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index aa546ef9..3f018703 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -31,6 +31,7 @@ defaults: env: PYTHONUNBUFFERED: 1 + WXPYTHON_BUILD_ARGS: ${{ startsWith(github.ref, 'refs/tags/') && '--release' || '' }} #--------------------------------------------------------------------------- @@ -197,9 +198,9 @@ jobs: path: dist/wxPython-*.whl - publish-to-testpypi: - name: Publish Python distribution to TestPyPI - if: github.event_name != 'pull_request' + publish-to-pypi: + name: Publish Python distribution to PyPI + if: startsWith(github.ref, 'refs/tags/') needs: build-wheels runs-on: ubuntu-22.04 @@ -216,7 +217,7 @@ jobs: with: path: dist/ merge-multiple: true - - name: Publish distribution to TestPyPI + - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/