CI: use tags to designate a release

This commit is contained in:
Scott Talbert
2024-09-04 20:04:54 -04:00
parent acaa60d2f6
commit 6d9c248d3f

View File

@@ -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/