Update docs version from git tag (#339)

This commit is contained in:
Dave Murphy 2023-11-23 21:09:34 +00:00 committed by GitHub
parent 951ac0184d
commit 9cb0dcdb03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View File

@ -4,6 +4,7 @@ on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
doc:
@ -13,14 +14,22 @@ jobs:
steps:
- name: Checkout the Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Fetch tags
run: |
git fetch --tags
- name: Get current tag
id: vars
run: echo "tag=`git tag --sort=-version:refname | head -n 1`" >> "$GITHUB_OUTPUT"
- name: Generate Documentation
run: |
sudo apt-get update
sudo apt-get install -y cmake doxygen doxygen-latex graphviz
cd docs
sudo cmake .
sudo env WUT_VERSION=${{ steps.vars.outputs.tag }} cmake .
doxygen Doxyfile.docs >/dev/null
- name: Deploy to GitHub Pages

View File

@ -6,7 +6,7 @@ if(DOXYGEN_FOUND)
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
set(DOXYGEN_PROJECT_NAME "wut")
set(DOXYGEN_PROJECT_NUMBER "1.3.2")
set(DOXYGEN_PROJECT_NUMBER $ENV{WUT_VERSION})
set(DOXYGEN_PROJECT_BRIEF "Wii U Toolchain")
set(DOXYGEN_GENERATE_HTML YES)