From 35050845275aa3f2b3065cc1275fe404ff41181b Mon Sep 17 00:00:00 2001 From: Arthur Barraux Date: Thu, 25 Sep 2025 11:00:53 +0200 Subject: [PATCH] second try --- .gitea/workflows/build.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index f79a3b4..f901d9e 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -42,8 +42,14 @@ jobs: run: doxygen Doxyfile - name: Deploy to Pages - uses: peaceiris/actions-gh-pages@v3 - with: - publish_dir: ./docs/html - publish_branch: pages - github_token: ${{ secrets.GITEA_TOKEN }} + run: | + git config user.name "CI Bot" + git config user.email "ci-bot@homelinuxserver" + git fetch origin + git checkout --orphan pages + git rm -rf . + cp -r docs/html/* . + git add . + git commit -m "Update docs" || echo "No changes to commit" + git push https://$USERNAME:${{ secrets.GITEA_TOKEN }}@homelinuxserver.ddns.net/git//.git pages --force +