mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-12 15:49:28 -08:00
Add workflow to generate doxygen on tag push (#6189)
* Add workflow to generate doxygen on tag push. Took 17 minutes * Publish correct dir. Took 3 minutes * Don't include common/libs. Took 20 minutes * Update workflow Took 1 hour 25 minutes * Style Doxygen output. Took 55 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
29
.github/workflows/generate-and-publish-docs.yml
vendored
Normal file
29
.github/workflows/generate-and-publish-docs.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
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@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: main
|
||||
publish_dir: ./docs/html
|
||||
destination_dir: docs # Docs will live under https://cockatrice.github.io/docs/
|
||||
Reference in New Issue
Block a user