From 6d720d4cf63a4d0488ddb8f9f5db462d656e6ffd Mon Sep 17 00:00:00 2001 From: sethg Date: Sat, 13 Jun 2026 00:14:59 +0200 Subject: [PATCH] Updates --- scripts/ci_deploy_gh_pages.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/ci_deploy_gh_pages.sh b/scripts/ci_deploy_gh_pages.sh index 0c3c71c9cd7..a7e280d50a9 100755 --- a/scripts/ci_deploy_gh_pages.sh +++ b/scripts/ci_deploy_gh_pages.sh @@ -17,12 +17,8 @@ git clone --depth=1 \ /tmp/MapServer-documentation cd /tmp/MapServer-documentation -git fetch origin gh-pages -git checkout -B gh-pages origin/gh-pages - -# delete existing files -git rm -rf --quiet --ignore-unmatch . - +git checkout --orphan gh-pages +git rm -rf . || true # add in the new build files cp -a "$builddir/html/." . @@ -30,4 +26,4 @@ touch .nojekyll git add -A git commit -m "update with results of commit https://github.com/MapServer/MapServer-documentation/commit/$sha" --quiet || echo "Nothing to commit" -git push origin gh-pages \ No newline at end of file +git push origin gh-pages --force \ No newline at end of file