ModernUO/.github/workflows/update-docs.yml
2026-01-01 17:52:56 -08:00

40 lines
911 B
YAML

name: Updates Docs
on:
repository_dispatch:
types: [docs]
workflow_dispatch:
jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install mkdocs-material
run: pip install mkdocs-material
- name: Build mkdocs site
run: mkdocs build --strict
- name: Build packets documentation
shell: pwsh
run: ./docs/tools/build-packets.ps1
- name: Copy commands and packets to site
run: |
cp ./docs/commands/commands.html ./site/
cp ./docs/packets/packets.html ./site/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./site
branch: gh-pages
clean: true
clean-exclude: |
.nojekyll