Skip to content
Snippets Groups Projects
Verified Commit bf931993 authored by James Graham's avatar James Graham
Browse files

ci: add gh-pages build job for docs

parent aa7b0883
No related branches found
No related tags found
No related merge requests found
name: github pages
on:
push:
branches:
- pydoc # Set a branch to deploy
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pydoc-markdown~=3.10.0
- name: Build
run: pydoc-markdown --build --site-dir public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment