mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 03:28:49 -07:00
CI: Doxygen Docs workflow adjustments (#6194)
* Manual trigger, branch name fix, rename yml * Update documentation-build.yml * Run on changes to file but only deploy on tags * Update documentation-build.yml
This commit is contained in:
parent
ed4c92c42c
commit
c570b1f523
1 changed files with 11 additions and 3 deletions
|
|
@ -1,12 +1,19 @@
|
||||||
name: Generate and Deploy Doxygen Docs
|
name: Generate Docs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*' # Only re-generate docs when a new version is pushed
|
- '*' # Only re-generate docs when a new tagged version is pushed
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/documentation-build.yml'
|
||||||
|
- 'Doxyfile'
|
||||||
|
- 'doxygen_style.css'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
|
name: Doxygen
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -20,10 +27,11 @@ jobs:
|
||||||
run: doxygen Doxyfile
|
run: doxygen Doxyfile
|
||||||
|
|
||||||
- name: Deploy to cockatrice.github.io
|
- name: Deploy to cockatrice.github.io
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}
|
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}
|
||||||
external_repository: Cockatrice/cockatrice.github.io
|
external_repository: Cockatrice/cockatrice.github.io
|
||||||
publish_branch: main
|
publish_branch: master
|
||||||
publish_dir: ./docs/html
|
publish_dir: ./docs/html
|
||||||
destination_dir: docs # Docs will live under https://cockatrice.github.io/docs/
|
destination_dir: docs # Docs will live under https://cockatrice.github.io/docs/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue