Skip to content

Commit 32946e1

Browse files
author
James Hagborg
committed
this is frustrating
1 parent 0a482c2 commit 32946e1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/deploy_docs.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
DEPLOY_DIR=$1
24

35
echo "Deploying docs to ${DEPLOY_DIR}"
@@ -8,7 +10,7 @@ cd $HOME
810
echo "debug: cwd is $(pwd)"
911
git config --global user.email "[email protected]"
1012
git config --global user.name "travis-ci"
11-
git clone --depth=50 --quiet --branch=gh-pages "https://${GH_TOKEN}@github.com/teamhyper/hyperLib.git" gh-pages &> /dev/null
13+
git clone --quiet "https://${GH_TOKEN}@github.com/teamhyper/hyperLib.git" gh-pages > /dev/null
1214
ls -la
1315
cd gh-pages
1416
echo "debug: cwd is now $(pwd)"
@@ -25,6 +27,6 @@ echo "Committing and pushing..."
2527
# Commit and push changes
2628
git add -f .
2729
git commit -m "Add latest javadoc from build $TRAVIS_BUILD_NUMBER to $DEPLOY_DIR"
28-
git push -fq origin gh-pages &> /dev/null
30+
git push -fq origin gh-pages > /dev/null
2931

3032
echo "Docs successfully deployed"

0 commit comments

Comments
 (0)