python-piped-api-client/.github/workflows/build_documentation.yml

39 lines
904 B
YAML
Raw Normal View History

2022-01-23 10:14:52 +00:00
name: Build documentation
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
2022-02-26 10:42:18 +00:00
python-version: ['3.10']
2022-01-23 10:14:52 +00:00
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pdoc
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build docs
run: |
chmod +x ./scripts/build_documentation.sh
bash ./scripts/build_documentation.sh
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: documentation
2022-02-26 10:34:16 +00:00
folder: ./documentation