Files
2025-09-05 17:17:26 +02:00

47 lines
1.1 KiB
YAML

name: Build and Deploy Documentation
on:
push:
branches: [ master ]
paths:
- 'Documentation/**'
- 'Harmony/**'
- 'scripts/generate_llm_pack.py'
- '.github/workflows/docs.yml'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install DocFX
run: dotnet tool install -g docfx
- name: Build Library
run: dotnet build -c Debug -f net35 .\Lib.Harmony\Lib.Harmony.csproj
- name: Build Documentation
run: docfx Documentation/docfx.json
- name: Install Python dependencies
run: pip install pyyaml
- name: Generate LLM Pack
run: python scripts/generate_llm_pack.py
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
force_orphan: true
cname: harmony.pardeike.net