You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/08/11 04:05:00 UTC

[dolphinscheduler-website] branch master updated: feat: Support python multiple version documents (#822)

This is an automated email from the ASF dual-hosted git repository.

zhongjiajie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git


The following commit(s) were added to refs/heads/master by this push:
     new cbfa058b7 feat: Support python multiple version documents (#822)
cbfa058b7 is described below

commit cbfa058b762ae1f90982edf7f434088987fd22eb
Author: Jiajie Zhong <zh...@gmail.com>
AuthorDate: Thu Aug 11 12:04:56 2022 +0800

    feat: Support python multiple version documents (#822)
---
 .github/workflows/website.yml | 47 +++++++++++++------------------------------
 1 file changed, 14 insertions(+), 33 deletions(-)

diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml
index 2d442fd1b..dc040658b 100644
--- a/.github/workflows/website.yml
+++ b/.github/workflows/website.yml
@@ -8,38 +8,13 @@ on:
     - cron: "0 5 * * *"
 
 env:
-  PYDS_HOME: dolphinscheduler-python/pydolphinscheduler
+  # We use the repo in swap/dolphinscheduler to build all python versions docs
+  PYDS_HOME: swap/dolphinscheduler/dolphinscheduler-python/pydolphinscheduler
+  DEPENDENCES: pip setuptools wheel tox
 
 jobs:
-  build-py-doc:
-    name: Build Python Doc
-    runs-on: ubuntu-latest
-    steps:
-      - name: Checkout apache/dolphinscheduler
-        uses: actions/checkout@v2
-        with:
-          repository: apache/dolphinscheduler
-      - name: Set up Python 3.7
-        uses: actions/setup-python@v2
-        with:
-          python-version: 3.7
-      - name: Install Development Dependences
-        working-directory: ${{ env.PYDS_HOME }}
-        run: |
-          pip install -e .[doc]
-      - name: Test Build Document
-        working-directory: ${{ env.PYDS_HOME }}/docs
-        run: make clean && make html
-      - uses: actions/upload-artifact@v2
-        name: Upload Python API Dist Doc
-        with:
-          name: python-dist-doc
-          path: ${{ env.PYDS_HOME }}/docs/build/html
-          retention-days: 1
-
   build-website-deploy:
     runs-on: ubuntu-latest
-    needs: [ build-py-doc ]
     steps:
     - name: Checkout
       uses: actions/checkout@master
@@ -51,14 +26,20 @@ jobs:
       uses: actions/setup-node@v1
       with:
         node-version: 10.23.1
-    - name: Build
+
+    - name: Build Main Document
       run: npm install && npm run build
 
-    - uses: actions/download-artifact@v2
-      name: Download Python API Dist Document
+    - name: Set up Python 3.7
+      uses: actions/setup-python@v2
       with:
-        name: python-dist-doc
-        path: dist/python
+        python-version: 3.7
+    - name: Build Python Multiple Version Document
+      working-directory: ${{ env.PYDS_HOME }}
+      run: |
+        python -m pip install --upgrade ${{ env.DEPENDENCES }}
+        python -m tox -vv -e doc-build-multi
+        cp -r docs/build/html/versions ${GITHUB_WORKSPACE}/dist/python
 
     - name: Deploy
       uses: peaceiris/actions-gh-pages@v3