Manual trigger, branch name fix, rename yml

This commit is contained in:
tooomm 2025-09-28 18:31:56 +02:00 committed by GitHub
parent 5381562a5e
commit 944fee637e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,31 @@
name: Documentation
on:
push:
tags:
- '*' # Only re-generate docs when a new tagged version is pushed
workflow_dispatch:
jobs:
docs:
name: Doxygen Docs
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Install Doxygen and Graphviz
run: sudo apt-get install -y doxygen graphviz
- name: Generate Documentation
run: doxygen Doxyfile
- name: Deploy to cockatrice.github.io
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}
external_repository: Cockatrice/cockatrice.github.io
publish_branch: master
publish_dir: ./docs/html
destination_dir: docs # Docs will live under https://cockatrice.github.io/docs/