diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index af5bde3..7ccfad8 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -25,22 +25,20 @@ jobs: - name: Deploy to docs-static Branch run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" + git config user.name "gitea-actions[bot]" + git config user.email "actions@noreply.gitea.io" + + # Increase buffer to handle larger media files + git config http.postBuffer 524288000 - # Move built content to a temporary location outside the git tree mv output_content /tmp/site_final - - # Switch to an orphan branch git checkout --orphan docs-static - - # Completely clear the working directory of all tracked files git rm -rf . - - # Copy ONLY the contents of the build folder into the root cp -r /tmp/site_final/. . - # Add, commit, and force push + # Optional: Remove source maps to save space + find . -name "*.map" -type f -delete + git add . - git commit -m "Automated MkDocs build: $(date)" + git commit -m "Automated MkDocs build" git push origin docs-static --force