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 +