2020-07-01 18:49:24 +00:00
|
|
|
name: Documentation
|
|
|
|
|
|
|
|
env:
|
|
|
|
packageName: 'kibicara'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
release:
|
|
|
|
types: [published, created, edited]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: [3.8]
|
|
|
|
|
|
|
|
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
|
2020-09-12 17:28:32 +00:00
|
|
|
pip install .
|
2020-07-01 18:49:24 +00:00
|
|
|
pip install pdoc3
|
2020-07-09 16:14:09 +00:00
|
|
|
- name: Build documentation with pdoc3
|
2020-07-01 18:49:24 +00:00
|
|
|
run: |
|
|
|
|
pdoc -f -o build --html ${{ env.packageName }}
|
|
|
|
- name: Deploy documentation onto gh-pages
|
|
|
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
BRANCH: gh-pages # The branch the action should deploy to.
|
|
|
|
FOLDER: build/${{ env.packageName }} # The folder the action should deploy.
|
|
|
|
CLEAN: true
|