-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* add mike as versioning provider for python docs (#1375) Signed-off-by: bossenti <[email protected]> * adapt GitHub workflow for python docs creation (#1375) * add doc releasing to python deployment (#1375) * retrieve release version from branch name (#1375) --------- Signed-off-by: bossenti <[email protected]> [#1375] add versioning to python docs (#1397)
- Loading branch information
Showing
4 changed files
with
107 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: "build-python-docs-and-share-as-artifact" | ||
|
||
on: | ||
schedule: | ||
- cron: "0 2 * * 6" # runs every saturday at 00:00:00 | ||
|
||
jobs: | ||
python-docs-artifact-building: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- 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: | ||
python-version: 3.8 | ||
|
||
- name: Cache Python dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-doc-${{ hashFiles('**/setup.py') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-doc- | ||
- name: Install Python dependencies | ||
working-directory: ./streampipes-client-python | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install wheel | ||
pip install -e ".[docs]" | ||
- name: Build Python docs | ||
working-directory: ./streampipes-client-python | ||
run: | | ||
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/docs-tmp/**/* | ||
retention-days: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters