name: Docs

on:
  push:
    branches:
      - master

  pull_request:

  workflow_dispatch:

  # Routinely check that we continue to work in the face of external changes.
  schedule:
    # Every Monday at 17:42 UTC / 9:42 Seattle (winter) / 10:42 Seattle (summer)
    - cron: "42 17 * * 1"

jobs:
  ci:
    uses: nextstrain/.github/.github/workflows/docs-ci.yaml@master
    with:
      docs-directory: docs/
      environment-file: docs/conda.yml
      run-linkcheck: ${{ github.event_name == 'schedule' }}
