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 6, 2023
1 parent 2289193 commit 60fc13e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/python-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
name: "build-python-docs-and-share-as-artifact"

on:
workflow_dispatch:
schedule:
- cron: "0 2 * * 6" # runs every saturday at 00:00:00

Expand All @@ -26,6 +27,13 @@ jobs:
- name: clone
uses: actions/checkout@v3

- name: create working branch
uses: peterjgrainger/action-create-branch@v2.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: 'build-python-docs-${{ github.run_id }}'

- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -49,11 +57,15 @@ jobs:
- name: Build Python docs
working-directory: ./streampipes-client-python
run: |
make doc
mike deploy dev --deploy-prefix ./streampipes-client-python/docs-tmp -b feature/python-doc-versioning
- 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

- name: remove branch
run: |
git push origin --delete build-python-docs-${{ github.run_id }}

0 comments on commit 60fc13e

Please sign in to comment.