2022-02-12 13:28:19 +00:00
|
|
|
name: gh-pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-04-22 20:27:11 +00:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- '**.h'
|
|
|
|
- '**.hpp'
|
|
|
|
- '**.dox'
|
|
|
|
- 'docs/**'
|
|
|
|
workflow_dispatch:
|
|
|
|
branches:
|
|
|
|
- master
|
2022-02-12 13:28:19 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
gh-pages:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: debian:testing
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: sh
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
apt-get -y update
|
2022-04-22 20:27:11 +00:00
|
|
|
apt-get -y install --no-install-recommends python3-pip doxygen git
|
2022-02-12 13:28:19 +00:00
|
|
|
pip3 install --upgrade --requirement tools/requirements.txt
|
|
|
|
|
|
|
|
- name: Generate docs
|
|
|
|
run: |
|
|
|
|
cd docs
|
|
|
|
poxy --verbose
|
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./docs/html
|