Skip to content

Commit

Permalink
Use the old push method
Browse files Browse the repository at this point in the history
peaceiris/actions-gh-pages@v3 was ridiculously slow
  • Loading branch information
darksylinc committed Nov 10, 2023
1 parent 81f5383 commit 317eaca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,3 @@ jobs:
- name: Build Doxygen
working-directory: ./
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
11 changes: 11 additions & 0 deletions Scripts/BuildScripts/build_ci_doxygen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,19 @@ echo "--- Going to gh-pages repo ---"
cd ../../gh-pages || exit $?
cd api || exit $?
echo "--- Removing old ${OGRE_VERSION} ---"
git rm -rf ${OGRE_VERSION} || exit $?
rm -rf ${OGRE_VERSION} || exit $?
echo "--- Copying new ${OGRE_VERSION} ---"
mv ../../build/Doxygen/api/html ${OGRE_VERSION} || exit $?

git config user.email "darksylinc"
git config user.name "[email protected]"

echo "--- Adding to ${OGRE_VERSION} to git ---"
git add ${OGRE_VERSION} || exit $?
echo "--- Committing ---"
git commit -m "Deploy GH" || exit $?
echo "--- Pushing repo... ---"
git push || exit $?

echo "Done!"

0 comments on commit 317eaca

Please sign in to comment.