Skip to content

Commit

Permalink
adapt GitHub workflow for python docs creation (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
bossenti committed Mar 7, 2023
1 parent 2289193 commit 752932f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/python-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 752932f

Please sign in to comment.