Skip to content

Commit 5d811cb

Browse files
author
Damian Rouson
authored
Merge pull request #25 from everythingfunctional/main
Deploy ford documentation automatically
2 parents 9ca9eea + 9107372 commit 5d811cb

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build and Deploy Documentation
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
Build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Install Dependencies Ubuntu
14+
run: |
15+
sudo apt-get update
16+
sudo apt install -y python-dev python build-essential graphviz
17+
sudo pip install ford
18+
19+
- name: Build Developer Documenation
20+
run: |
21+
cd doc
22+
ford ford-documentation.md
23+
24+
- name: Upload Documentation
25+
uses: actions/upload-artifact@v2
26+
with:
27+
name: documentation
28+
path: doc/html
29+
if-no-files-found: error
30+
31+
- name: Broken Link Check
32+
if: ${{ github.ref == 'refs/heads/main'}}
33+
uses: technote-space/broken-link-checker-action@v1
34+
with:
35+
TARGET: file://${{ github.workspace }}/doc/html/index.html
36+
RECURSIVE: true
37+
ASSIGNEES: ${{ github.actor }}
38+
39+
- name: Deploy API Documentation
40+
uses: JamesIves/[email protected]
41+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
42+
with:
43+
branch: gh-pages
44+
folder: doc/html

0 commit comments

Comments
 (0)