Create deploy-docs.yml

This commit is contained in:
Mathias Wagner
2024-07-30 15:37:22 +02:00
parent 946317cb55
commit c57a1e6c9c

35
.github/workflows/deploy-docs.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Deploy Documentation
on:
push:
paths:
- 'docs/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: yarn install
- name: Generate documentation
run: yarn run generate
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist