Skip to content

Generate documentation #17

Generate documentation

Generate documentation #17

Workflow file for this run

name: generate-doc
run-name: Generate documentation
on:
push:
branches:
- "main"
paths:
- ".github/workflows/docs.yml"
- "docs/**"
- "nova.nimble"
workflow_dispatch:
jobs:
generate-doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: stable
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate documentation
run: |
nimble install -y nimibook
nimble docs
cd out
echo "nova.nim.town" > CNAME
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v3
with:
build_dir: out
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}