-
Notifications
You must be signed in to change notification settings - Fork 69
77 lines (76 loc) · 1.75 KB
/
doc-deployment.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
66
67
68
69
70
71
72
73
74
75
76
77
name: Build and Deploy Documentation and Website
on:
push:
branches:
- main
- documentation
jobs:
Build:
runs-on: ubuntu-22.04
steps:
#
# Checks-out repository under $GITHUB_WORKSPACE
#
- uses: actions/checkout@v4
#
# Synchronize the package index
#
- name: Synchronize the package index
run: sudo apt-get update
#
# Install dependencies
#
- name: Install dependencies
run: |
sudo apt-get install graphviz
sudo pip install 'markdown<3.4' ford
#
# Install Ruby
#
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
#
# Install Jekyll
#
- name: Install Jekyll
run: |
cd doc/jekyll_site
sudo gem install bundler jekyll
bundle update
#
# Build documentation
#
- name: Build Documentation
run: |
cd doc
./build_documentation.sh -ci
#
# Upload documentation
#
- name: Upload Documentation
uses: actions/upload-artifact@v3
with:
name: documentation
path: public/
if-no-files-found: error
#
# Check broken links
#
- name: Broken Link Check
if: ${{ github.ref == 'refs/heads/documentation'}}
uses: technote-space/broken-link-checker-action@v2
with:
TARGET: file://${{ github.workspace }}/doc/ford_site/pages/index.html
RECURSIVE: true
ASSIGNEES: ${{ github.actor }}
#
# Deploy documentation
#
- name: Deploy API Documentation
uses: JamesIves/[email protected]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/documentation' }}
with:
branch: gh-pages
folder: public/