mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 15:54:04 +00:00
35 lines
863 B
YAML
35 lines
863 B
YAML
name: Publish Documentation
|
|
|
|
on:
|
|
push:
|
|
branches: ["dev"]
|
|
paths:
|
|
- "resources/**"
|
|
- "Minecraft.Client/**"
|
|
- "minecraft/**"
|
|
- "docs/**"
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Set up Doxygen
|
|
run: sudo apt-get update && sudo apt-get install -y doxygen graphviz build-essential libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev
|
|
- name: Update doxygen-awesome
|
|
run: git submodule update --init --recursive
|
|
- name: Generate Docs
|
|
run: cd docs && doxygen
|
|
- name: Deploy to GitHub Pages
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./docs/html
|
|
force_orphan: true
|