This action builds documentation for a Fortran project using FORD. The documentation can then be deployed using another action such as to GitHub Page.
Required Name of the FORD project file (default project-file.md)
Path to the directory where documentation is written. This is useful for a subsequent deployment step.
In addition to building the documentation using this action, the following example also deploys the documentation to a GitHub pages branch.
name: Docs
on: push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build
id: build
uses: ResearchSoftwareActions/ford-build@v1
- name: Deploy
if: success()
uses: crazy-max/ghaction-github-pages@v1
with:
target_branch: gh-pages
build_dir: ${{ steps.build.outputs.output_dir }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}