-
Notifications
You must be signed in to change notification settings - Fork 75
52 lines (50 loc) · 1.71 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: PeleC-Docs
on:
push:
branches: [development]
paths:
- 'Docs/**'
- 'README.rst'
- '.github/workflows/docs.yml'
pull_request:
branches: [development]
paths:
- 'Docs/**'
- 'README.rst'
- '.github/workflows/docs.yml'
jobs:
Docs:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v4
- name: Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Dependencies
run: |
#Currently ignoring doxygen
#sudo apt-get update
#sudo apt-get install -y --no-install-recommends doxygen graphviz
python -m pip install --upgrade pip
pip install sphinx sphinx_rtd_theme
- name: Configure
run: cmake -B${{runner.workspace}}/build-docs ${{github.workspace}}/Docs
- name: Build
working-directory: ${{runner.workspace}}/build-docs
run: |
echo "::add-matcher::.github/problem-matchers/sphinx.json"
cmake --build ${{runner.workspace}}/build-docs
echo "::remove-matcher owner=sphinx-problem-matcher-loose-no-severity::"
echo "::remove-matcher owner=sphinx-problem-matcher-loose::"
echo "::remove-matcher owner=sphinx-problem-matcher::"
touch ${{runner.workspace}}/build-docs/sphinx/html/.nojekyll
- name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/development'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: ${{runner.workspace}}/build-docs/sphinx/html
SINGLE_COMMIT: true