Skip to content

Update github workflows #9

Update github workflows

Update github workflows #9

Workflow file for this run

name: Documentation
on:
push:
branches: [main]
paths:
- "docs/**"
- "src/**/*.md"
- "src/**/*.mdx"
- "src/pages/**"
- "src/components/docs/**"
pull_request:
branches: [main]
paths:
- "docs/**"
- "src/**/*.md"
- "src/**/*.mdx"
- "src/pages/**"
- "src/components/docs/**"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"
- name: Install dependencies
run: yarn install
- name: Build documentation
run: yarn docs:build
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/docs
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"
commit_message: "docs: update documentation site"