add button that links to repo in docs (#35) #95
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
name: generate and deploy API docs | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11" | |
- name: Build | |
run: | | |
pip install pdoc | |
pip install -e . | |
JUPYTER_PLATFORM_DIRS=1 PDOC_ALLOW_EXEC=1 python -We -m pdoc -o html open_atmos_jupyter_utils | |
- name: Deploy | |
if: github.ref == 'refs/heads/main' | |
uses: JamesIves/[email protected] | |
with: | |
BRANCH: pdoc | |
FOLDER: html | |
CLEAN: true |