Skip to content

Commit

Permalink
Improve Doxygen CI
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Nov 10, 2023
1 parent 03fbfb6 commit 81f5383
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 35 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Build Doxygen
working-directory: ./
run: ./Scripts/BuildScripts/build_ci_doxygen_step0.sh
- uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
- name: Publish Doxygen

- name: Build Doxygen
working-directory: ./
run: ./Scripts/BuildScripts/build_ci_doxygen_step1.sh
run: ./Scripts/BuildScripts/build_ci_doxygen.sh

- name: Publish # Only on master branch
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ cmake \
-DCMAKE_CXX_STANDARD=11 \
-G Ninja ../.. || exit $?
ninja OgreDoc || exit $?
cd ../.. || exit $?
# echo "--- Checking out gh-pages branch ---"
# git checkout gh-pages || exit $?

echo "Done Step 0!"
echo "--- Going to gh-pages repo ---"
cd ../../gh-pages || exit $?
cd api || exit $?
echo "--- Removing old ${OGRE_VERSION} ---"
rm -rf ${OGRE_VERSION} || exit $?
echo "--- Copying new ${OGRE_VERSION} ---"
mv ../../build/Doxygen/api/html ${OGRE_VERSION} || exit $?

echo "Done!"
26 changes: 0 additions & 26 deletions Scripts/BuildScripts/build_ci_doxygen_step1.sh

This file was deleted.

0 comments on commit 81f5383

Please sign in to comment.