Changes to docs deploy #2
This file contains 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: Deploy documentation site | ||
on: | ||
push: | ||
paths: | ||
- 'docs/**' | ||
- '.github/workflows/deploy-docs.yml' | ||
branches: ["main"] | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
name: Deploys | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/checkout@main | ||
- name: 'Build and deploy' | ||
shell: bash | ||
run: | | ||
brew install doctave/doctave/doctave | ||
doctave build --release --allow-failed-checks | ||
- name: GitHub Pages | ||
uses: crazy-max/ghaction-github-pages@v4 | ||
with: | ||
build_dir: site/ | ||
env: | ||
GITHUB_TOKEN: {{ secrets.GITHUB_TOKEN }} | ||