Skip to content

Update build_docs.yml #3

Update build_docs.yml

Update build_docs.yml #3

Workflow file for this run

name: Build and Deploy Documentation
on:
push:
branches:
- master # Trigger the workflow on push to the main branch
- '**' # Trigger on any branch (including forked branches)
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install sphinx sphinx-rtd-theme
- name: Build the documentation
run: |
cd docs
make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build
publish_branch: master
user_name: 'github-actions'
user_email: 'github-actions@github.com'