Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions scripts/ci_deploy_gh_pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ 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/." .
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
git push origin gh-pages --force