mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 13:00:07 +01:00
CI: use tags to designate a release
This commit is contained in:
9
.github/workflows/ci-build.yml
vendored
9
.github/workflows/ci-build.yml
vendored
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user