diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 7ccfad8..6f222a5 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -32,8 +32,8 @@ jobs: git config http.postBuffer 524288000 mv output_content /tmp/site_final - git checkout --orphan docs-static - git rm -rf . + git fetch origin docs-static + git checkout docs-static || git checkout --orphan docs-static cp -r /tmp/site_final/. . # Optional: Remove source maps to save space