瀏覽代碼

build: deploy to gh-pages explicit reset GH_TOKEN

David Bernard 9 年之前
父節點
當前提交
47354aaed0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      deploy_ghpages.sh

+ 1 - 1
deploy_ghpages.sh

@@ -31,6 +31,6 @@ git config --local user.email "[email protected]"
 git config --local user.name "Travis"
 git add -A .
 git commit -m "Travis build $TRAVIS_BUILD_NUMBER pushed to gh-pages at ${rev}"
-git push origin gh-pages
+git push --force --quiet https://${GH_TOKEN}@github.com/${repo} gh-pages
 cd ..
 rm -Rf gh-pages