From 1562208599d59bb14dd32529e87a06314c7e460c Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Mon, 9 Sep 2024 19:58:27 -0400 Subject: [PATCH] CI: build docs and demos on push --- .github/workflows/ci-build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 06f248be..602a4bdb 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -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