We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2200dd7 commit 6d720d4Copy full SHA for 6d720d4
1 file changed
scripts/ci_deploy_gh_pages.sh
@@ -17,17 +17,13 @@ git clone --depth=1 \
17
/tmp/MapServer-documentation
18
19
cd /tmp/MapServer-documentation
20
-git fetch origin gh-pages
21
-git checkout -B gh-pages origin/gh-pages
22
-
23
-# delete existing files
24
-git rm -rf --quiet --ignore-unmatch .
25
+git checkout --orphan gh-pages
+git rm -rf . || true
26
27
# add in the new build files
28
cp -a "$builddir/html/." .
29
touch .nojekyll
30
31
git add -A
32
git commit -m "update with results of commit https://github.com/MapServer/MapServer-documentation/commit/$sha" --quiet || echo "Nothing to commit"
33
-git push origin gh-pages
+git push origin gh-pages --force
0 commit comments