From 91073720fffc4adc596a5dc8613a8b218c350e34 Mon Sep 17 00:00:00 2001 From: Brad Richardson Date: Tue, 21 Sep 2021 13:01:24 -0500 Subject: [PATCH] ci(doc): deploy ford documentation automatically --- .github/workflows/deploy-docs.yml | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/deploy-docs.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 00000000..f9a80a76 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,44 @@ +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: | + cd doc + ford ford-documentation.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/github-pages-deploy-action@4.1.0 + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + with: + branch: gh-pages + folder: doc/html