the-bastion/.github/workflows/documentation.yml

31 lines
818 B
YAML
Raw Normal View History

2020-10-16 00:32:37 +08:00
name: documentation
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install sphinx and prerequisites
2020-10-16 00:32:37 +08:00
run: |
sudo apt update
2021-02-18 02:58:02 +08:00
sudo apt install -y python3-sphinx-rtd-theme python3-sphinx make libcommon-sense-perl libjson-perl libdatetime-perl libterm-readkey-perl
- name: Build documentation
2020-10-16 00:32:37 +08:00
run: cd doc/sphinx/ && make all
- name: Deploy to GitHub Pages
2020-10-16 00:32:37 +08:00
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: docs
allow_empty_commit: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}