Skip to content

Add GitHub Actions workflow for auto-deploying documentation and fix … #1

Add GitHub Actions workflow for auto-deploying documentation and fix …

Add GitHub Actions workflow for auto-deploying documentation and fix … #1

Workflow file for this run

name: Deploy Docs
on:
push:
branches: [main]
paths:
- 'documentation/**'
- '.github/workflows/docs.yml'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
cd documentation
npm ci
- name: Build documentation
run: |
cd documentation
npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./documentation/build