From 317eaca9d5a961132eeabbb662bbabf9d0bde839 Mon Sep 17 00:00:00 2001 From: "Matias N. Goldberg" Date: Fri, 10 Nov 2023 20:17:19 -0300 Subject: [PATCH] Use the old push method peaceiris/actions-gh-pages@v3 was ridiculously slow --- .github/workflows/main.yml | 7 ------- Scripts/BuildScripts/build_ci_doxygen.sh | 11 +++++++++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ec02171f924..2e38b8971e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/Scripts/BuildScripts/build_ci_doxygen.sh b/Scripts/BuildScripts/build_ci_doxygen.sh index 39a7b5bb220..855006cd082 100755 --- a/Scripts/BuildScripts/build_ci_doxygen.sh +++ b/Scripts/BuildScripts/build_ci_doxygen.sh @@ -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 "darksylinc@users.noreply.github.com" + +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!"