-
Notifications
You must be signed in to change notification settings - Fork 19
66 lines (53 loc) · 1.77 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
53
54
55
56
57
58
59
60
61
62
63
64
65
name: docs
on:
push:
branches:
- main
tags:
- v*
jobs:
build-and-deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install graphviz
run: sudo apt-get install -y graphviz
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Ford
run: pip install ford
- name: Ford version
run: ford --version
- name: Checkout gFTL
uses: actions/checkout@v3
with:
repository: Goddard-Fortran-Ecosystem/gFTL
path: gFTL
fetch-depth: 1
- name: Build gFTL
run: |
cd gFTL
mkdir -p build
cd build
cmake .. -DCMAKE_Fortran_COMPILER=gfortran-10 -DCMAKE_INSTALL_PREFIX=../install
make -j$(nproc) install
- name: Build Documentation
run: ford Ford/docs-with-remote-esmf.md
- name: Build Developer Documentation
run: ford Ford/docs-with-remote-esmf.public_private_protected.md
- name: Deploy Pages
uses: JamesIves/github-pages-deploy-action@v4
if: github.event_name == 'push' && github.repository == 'GEOS-ESM/MAPL' && ( startsWith( github.ref, 'refs/tags/v' ) || github.ref == 'refs/heads/main' )
with:
folder: Ford/doc
token: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy Dev Pages
uses: JamesIves/github-pages-deploy-action@v4
if: github.event_name == 'push' && github.repository == 'GEOS-ESM/MAPL' && ( startsWith( github.ref, 'refs/tags/v' ) || github.ref == 'refs/heads/main' )
with:
folder: Ford/dev-doc
token: ${{ secrets.GITHUB_TOKEN }}
target-folder: dev-doc