publish-gh-pages: don't reset hard to have network bandwidth in transferring all files from scratch

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-07-14 00:00:06 +00:00
parent e60f29da5c
commit b2f53bd0f6

View File

@@ -3,13 +3,11 @@
set -eu set -eu
git push git push
./build-doc --github-pages ./build-doc --github-pages
git branch -D gh-pages git checkout gh-pages
git checkout --orphan gh-pages git checkout master -- '*.png' _config.yml
git reset
cp out/README.html index.html cp out/README.html index.html
git add _config.yml index.html git add index.html
git commit --message "$(git log -n1 --pretty='%H' master)" git commit --message "$(git log -n1 --pretty='%H' master)"
git push --force git push --force
git symbolic-ref HEAD refs/heads/master git checkout -
git reset
rm index.html rm index.html