You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2023/03/07 21:02:03 UTC

[streampipes] 01/02: adapt GitHub workflow for python docs creation (#1375)

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

bossenti pushed a commit to branch 1375-versioning-for-python-docs
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 752932fc02845e089a9f8a975fdf5125ae865158
Author: bossenti <bo...@posteo.de>
AuthorDate: Mon Mar 6 21:50:40 2023 +0100

    adapt GitHub workflow for python docs creation (#1375)
---
 .github/workflows/python-docs.yml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/python-docs.yml b/.github/workflows/python-docs.yml
index 51edf741b..9717c921f 100644
--- a/.github/workflows/python-docs.yml
+++ b/.github/workflows/python-docs.yml
@@ -26,6 +26,12 @@ jobs:
       - name: clone
         uses: actions/checkout@v3
 
+      - name: create working branch & set GitHub config
+        run: |
+          git checkout -b build-python-docs-${{ github.run_id }}
+          git config user.name 'github-actions[bot]'
+          git config user.email 'github-actions[bot]@users.noreply.github.com'
+
       - name: Set up Python
         uses: actions/setup-python@v4
         with:
@@ -49,11 +55,12 @@ jobs:
       - name: Build Python docs
         working-directory: ./streampipes-client-python
         run: |
-          make doc
+          mike deploy dev --deploy-prefix ./streampipes-client-python/docs-tmp -b build-python-docs-${{ github.run_id }}
+          git reset --hard  # undo local changes that delete generated doc files
 
       - name: Publish Python docs as artifact
         uses: actions/upload-artifact@v3
         with:
           name: streampipes-python-docs
-          path: streampipes-client-python/site/**/*
+          path: streampipes-client-python/docs-tmp/**/*
           retention-days: 5