Skip to content

Commit bb095d9

Browse files
committed
Update deploy-site.sh
1 parent b9aa23e commit bb095d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/deploy-site.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Used with their MIT license https://github.com/eldarlabs/ghpages-deploy-script/blob/master/LICENSE
66

77
# abort the script if there is a non-zero error
8-
set -e
8+
set -euxo pipefail
99

1010
# initialize hub submodule
1111
git submodule deinit -f . && git submodule update --init --recursive
@@ -57,7 +57,7 @@ git add -A
5757
# now commit, ignoring branch master doesn't seem to work, so trying skip
5858
git commit --allow-empty -m "Deploy to GitHub Pages on master [ci skip]"
5959
# and push, but send any output to /dev/null to hide anything sensitive
60-
git push --force --quiet https://$GITHUB_TOKEN@github.com/pytorch/pytorch.github.io.git master
60+
git push --force --quiet https://pytorch:$GITHUB_TOKEN@github.com/pytorch/pytorch.github.io.git master
6161
# go back to where we started and remove the master git repo we made and used
6262
# for deployment
6363
cd ..

0 commit comments

Comments
 (0)