Skip to content

Commit e4ea804

Browse files
authored
Update deploy-docs.yml
1 parent 76762bb commit e4ea804

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,27 @@ jobs:
77
Build:
88
runs-on: ubuntu-22.04
99

10+
env:
11+
FC: gfortran
12+
GCC_V: 12
13+
1014
steps:
1115
- name: Checkout code
1216
uses: actions/checkout@v2
1317

1418
- name: Install Dependencies Ubuntu
1519
run: |
1620
sudo apt-get update
17-
sudo apt install -y python3-dev python3 build-essential graphviz gfortran-12
18-
sudo pip install ford
21+
sudo apt install -y gfortran-${GCC_V} python3-dev python3 build-essential numdiff graphviz
22+
sudo pip install ford markdown==3.3.4
1923
2024
- name: Build Developer Documenation
2125
run: |
22-
ford doc-generator.md
26+
cd doc
27+
# Turn warnings into errors
28+
ford doc-generator.md > ford_output.txt
29+
cat ford_output.txt; if grep -q -i Warning ford_output.txt; then exit 1; fi
30+
cp ../README.md html
2331
2432
- name: Upload Documentation
2533
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)