Skip to content

Commit

Permalink
test(CI): auto-deploy ford documenation to Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rouson committed Mar 1, 2022
1 parent 2eb7ca8 commit cae7752
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy-docs.yml
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

0 comments on commit cae7752

Please sign in to comment.