Skip to content

ResearchSoftwareActions/ford-build

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FORD Documentation Action

This action builds documentation for a Fortran project using FORD. The documentation can then be deployed using another action such as to GitHub Page.

Inputs

project_file

Required Name of the FORD project file (default project-file.md)

Outputs

output_dir

Path to the directory where documentation is written. This is useful for a subsequent deployment step.

Example usage

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 }}