galah 0.5.0

Microbial genome dereplicator
Documentation
name: Build manual pages and deploy documentation

on:
  push:
    branches:
      - main
    paths:
      - 'docs/**'
      - 'doctave.yaml'
      - '.github/workflows/deploy-docs.yml'

jobs:
  build:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: 'Checkout cargo and install doctave'
        uses: actions-rs/toolchain@v1.0.6
        with:
          toolchain: stable
      - run: cargo install --git https://github.com/Doctave/doctave --tag 0.4.2
      - name: 'Build doctave site'
        run: doctave build --release
      - name: 'GitHub Pages'
        uses: crazy-max/ghaction-github-pages@v3.0.0
        with:
          build_dir: site/
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}