CI: build docs and demos on push

This commit is contained in:
Scott Talbert
2024-09-09 19:58:27 -04:00
parent eed53105c9
commit 1562208599

View File

@@ -81,6 +81,30 @@ jobs:
name: wxPython-source
path: dist/wxPython-${{ steps.generate.outputs.version }}.tar.gz
- name: Create demo source distribution (sdist_demo)
if: github.event_name == 'push'
run: |
python build.py sdist_demo
- name: Save demo sdist as job artifact
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: demo
path: dist/wxPython-demo-${{ steps.generate.outputs.version }}.tar.gz
- name: Build documentation
if: github.event_name == 'push'
run: |
python build.py wxlib sphinx bdist_docs docset_py
- name: Save docs as job artifact
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: docs
path: dist/wxPython-docs*-${{ steps.generate.outputs.version }}.tar.gz
#---------------------------------------------------------------------------
@@ -222,6 +246,7 @@ jobs:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
pattern: wxPython-*
path: dist/
merge-multiple: true
- name: Publish distribution to PyPI