mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-25 16:13:54 -07:00
CI: Update trigger for doc builds (#6871)
* Update trigger * use `published` trigger * narrow deploy step filter * re-add deployments on manual runs
This commit is contained in:
parent
fe12f4cbb9
commit
7507103bb2
1 changed files with 5 additions and 5 deletions
10
.github/workflows/documentation-build.yml
vendored
10
.github/workflows/documentation-build.yml
vendored
|
|
@ -1,9 +1,9 @@
|
||||||
name: Generate Docs
|
name: Generate Docs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
tags:
|
types:
|
||||||
- '*' # Only re-generate docs when a new tagged version is pushed
|
- published # publishing of stable releases and pre-releases
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'doc/doxygen/**'
|
- 'doc/doxygen/**'
|
||||||
|
|
@ -53,11 +53,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'
|
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
|
||||||
uses: peaceiris/actions-gh-pages@v4
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
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: master
|
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