Skip to content

Commit

Permalink
Update docs version from git tag (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute authored Nov 23, 2023
1 parent 951ac01 commit 9cb0dcd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- '*'
workflow_dispatch:

jobs:
doc:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9cb0dcd

Please sign in to comment.