Skip to content

Commit 844ba5c

Browse files
committed
CI: Add untracked generated documentation files when publishing
If generating the documentation creates files that do not already exist on the `gh-pages` branch, the current GitHub Action to generate documentation will not add them. Instead, it will only update existing files. This may happen when a new component is added, or when the Doxygen version differs from prior runs. This bit us on our first run of the documentation-generation GitHub Action, because the version that GitHub Actions uses is different than the version that built our original documentation. This patch explicitly adds all files generated under the `docs/docs/apidocs/cpp_apidocs` directory, including both untracked files and tracked, modified files. Signed-off-by: Patrick M. Niedzielski <[email protected]>
1 parent f10d75f commit 844ba5c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/documentation.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,4 @@ jobs:
4949
cd docs/
5050
git config --global user.name "${{ github.actor }}"
5151
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
52-
git commit -s -am "Update C++ API docs from commit ${{ github.sha }} on main"
53-
git push
52+
git add docs/apidocs/cpp_apidocs/ && git commit -s -am "Update C++ API docs from commit ${{ github.sha }} on main" && git push || true

0 commit comments

Comments
 (0)