-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tested in https://github.com/EmilyBourne/gyselalibxx/ See merge request gysela-developpers/gyselalibxx!420 --------------------------------------------
- Loading branch information
1 parent
33b4111
commit 933c3b3
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,23 +92,27 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
path: code_branch | ||
- name: Checkout documentation | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: documentation | ||
path: doc_branch | ||
- name: Install doxygen | ||
run: | | ||
sudo apt install doxygen | ||
shell: bash | ||
- name: Generate docs | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DGYSELALIBXX_COMPILE_SOURCE=OFF -DBUILD_DOCUMENTATION=1 ../code_branch | ||
make doc | ||
cmake -DGYSELALIBXX_COMPILE_SOURCE=OFF -DBUILD_DOCUMENTATION=1 -B build-docs code_branch | ||
cmake --build build-docs | ||
shell: bash | ||
- name: Update documentation | ||
run: | | ||
cd doc_branch | ||
git rm -r * | ||
cp -r ../build/docs/html/* . | ||
cp -r ../build-docs/docs/html/* . | ||
git add . | ||
git config --global user.name "GitHub CI Documentation builder" | ||
git config --global user.email "[email protected]" | ||
|