Skip to content

Commit

Permalink
CI: build docs and demos on push
Browse files Browse the repository at this point in the history
  • Loading branch information
swt2c committed Sep 9, 2024
1 parent eed5310 commit 1562208
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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


#---------------------------------------------------------------------------

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1562208

Please sign in to comment.