mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 06:22:15 -07:00
Add workflow to generate doxygen on tag push.
Took 17 minutes
This commit is contained in:
parent
14991e1f9e
commit
2d2c188d2e
2 changed files with 2978 additions and 0 deletions
31
.github/workflows/docs.yml
vendored
Normal file
31
.github/workflows/docs.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
name: Generate and Deploy Doxygen Docs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*' # Only re-generate docs when a new version is pushed
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- 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: main
|
||||||
|
publish_dir: ./html
|
||||||
|
destination_dir: docs # Docs will live under https://cockatrice.github.io/docs/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue