Run on changes to file but only deploy on tags

This commit is contained in:
tooomm 2025-09-28 18:41:45 +02:00 committed by GitHub
parent c7f2ba8c15
commit 652f6864d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,9 @@ on:
push:
tags:
- '*' # Only re-generate docs when a new tagged version is pushed
pull_request:
paths:
- '.github/workflows/documentation-build.yml'
workflow_dispatch:
jobs:
@ -22,6 +25,7 @@ jobs:
run: doxygen Doxyfile
- name: Deploy to cockatrice.github.io
if: github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}