add workflow
All checks were successful
Build and Deploy MkDocs / deploy (push) Successful in 6s

This commit is contained in:
Jay
2026-03-03 16:04:48 +00:00
parent 2c56fad751
commit 3b64218fe5

View File

@@ -25,22 +25,20 @@ jobs:
- name: Deploy to docs-static Branch - name: Deploy to docs-static Branch
run: | run: |
git config user.name "github-actions[bot]" git config user.name "gitea-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com" 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 mv output_content /tmp/site_final
# Switch to an orphan branch
git checkout --orphan docs-static git checkout --orphan docs-static
# Completely clear the working directory of all tracked files
git rm -rf . git rm -rf .
# Copy ONLY the contents of the build folder into the root
cp -r /tmp/site_final/. . 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 add .
git commit -m "Automated MkDocs build: $(date)" git commit -m "Automated MkDocs build"
git push origin docs-static --force git push origin docs-static --force