-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(CI): auto-deploy ford documenation to Pages
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build and Deploy Documentation | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Dependencies Ubuntu | ||
run: | | ||
sudo apt-get update | ||
sudo apt install -y python-dev python build-essential graphviz | ||
sudo pip install ford | ||
- name: Build Developer Documenation | ||
run: | | ||
ford doc-generator.md | ||
- name: Upload Documentation | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: documentation | ||
path: doc/html | ||
if-no-files-found: error | ||
|
||
- name: Broken Link Check | ||
if: ${{ github.ref == 'refs/heads/main'}} | ||
uses: technote-space/broken-link-checker-action@v1 | ||
with: | ||
TARGET: file://${{ github.workspace }}/doc/html/index.html | ||
RECURSIVE: true | ||
ASSIGNEES: ${{ github.actor }} | ||
|
||
- name: Deploy API Documentation | ||
uses: JamesIves/[email protected] | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
with: | ||
branch: gh-pages | ||
folder: doc/html |