forked from erf-model/ERF
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.36 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
name: DocHTML -- Build and Deploy
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-docs
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dependencies
run: |
.github/workflows/dependencies/documentation.sh
python3 -m pip install --upgrade pip
python3 -m pip install sphinx==5.0.0 sphinx_rtd_theme # breathe -- not using breathe at the moment
python3 -m pip install -I docutils==0.16 # Downgrade docutils so that bullet points render properly with Sphinx
- name: Build Docs
run: |
./Docs/BuildDocs.sh
- name: Check links
run: |
cd Docs/sphinx_doc
make SPHINXOPTS="-v -W --keep-going" NO_DOXYGEN=TRUE linkcheck
- name: Deploy to Webpage
if: github.event_name == 'push' && github.repository == 'erf-model/ERF' && github.ref == 'refs/heads/development'
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
repository-name: erf-model/docs
branch: main # The branch the action should deploy to.
folder: Docs/doxygen_output/html # The folder the action should deploy.
commit-message: "Deployed from erf-model/ERF"