Merge pull request #249 from BerkeleyLab/fix-usage-info #1225
Workflow file for this run
This file contains hidden or 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
| name: Build and Deploy Documentation | |
| on: [push, pull_request] | |
| jobs: | |
| Build: | |
| runs-on: ubuntu-latest | |
| env: | |
| FC: gfortran | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install Dependencies Ubuntu | |
| run: | | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| PATH=/home/linuxbrew/.linuxbrew/bin/:"$PATH" | |
| brew install ford gcc | |
| - name: Build Developer Documenation | |
| run: | | |
| PATH=/home/linuxbrew/.linuxbrew/bin/:"$PATH" | |
| PATH=`brew --prefix ford`/bin:"$PATH" | |
| ford ford.md | |
| cp ./README.md ./doc/html | |
| - name: Upload Documentation | |
| uses: actions/upload-artifact@v4 | |
| 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 |