Use tag ref as dynamic project number

This commit is contained in:
tooomm 2025-10-03 14:54:30 +02:00
parent a69bfb8cb8
commit 5d61cfb133
2 changed files with 9 additions and 2 deletions

View file

@ -11,12 +11,18 @@ on:
- 'doxygen_style.css'
workflow_dispatch:
env:
COCKATRICE_REF: ${{ github.ref_name }} # Gives tag name if the commit is tagged, otherwise branch name
jobs:
docs:
name: Doxygen
runs-on: ubuntu-latest
steps:
- name: Print environment variable
run: echo $COCKATRICE_REF
- name: Checkout code
uses: actions/checkout@v5

View file

@ -1,4 +1,5 @@
# Doxyfile 1.14.0
# Docs: https://www.doxygen.nl/manual
# This file describes the settings to be used by the documentation system
# Doxygen (www.doxygen.org) for a project.
@ -48,13 +49,13 @@ PROJECT_NAME = "Cockatrice"
# could be handy for archiving the generated documentation or if some version
# control system is used.
PROJECT_NUMBER = 2.11
PROJECT_NUMBER = $(COCKATRICE_REF)
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewers a
# quick idea about the purpose of the project. Keep the description short.
PROJECT_BRIEF =
PROJECT_BRIEF = A cross-platform virtual tabletop for multiplayer card games
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55