Skip to content

Update documentation.yml #4

Update documentation.yml

Update documentation.yml #4

Workflow file for this run

name: Build Documentation
on:
push:
branches:
- '**'
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout main repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24.1.0'
- name: Checkout Wiki repository
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}.wiki
path: .wiki
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: npm install
- name: Generate documentation
run: npm run docs
- name: Commit and push wiki changes
run: |
cd .wiki
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git diff --quiet && git diff --staged --quiet || (git commit -m "Automatical update Wiki" && git push)