We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29faf96 commit 8d4e7e0Copy full SHA for 8d4e7e0
scripts/deploy_docs.sh
@@ -1,21 +1,24 @@
1
#!/bin/bash
2
3
+# Exit the script if something messes up, so we don't accidentally the whole thing
4
+set -e
5
+
6
DEPLOY_DIR=$1
7
8
echo "Deploying docs to ${DEPLOY_DIR}"
9
10
echo "Pulling existing github pages..."
11
# Set up git
-cd $HOME
-echo "debug: cwd is $(pwd)"
12
13
git config --global user.email "[email protected]"
14
git config --global user.name "travis-ci"
15
16
+mkdir $HOME/gh-pages
17
+cd $HOME/gh-pages
18
+echo "debug: cwd is $(pwd)"
19
git init
20
git pull "https://${GH_TOKEN}@github.com/teamhyper/hyperLib.git" gh-pages &> /dev/null
21
ls -la
-cd gh-pages
-echo "debug: cwd is now $(pwd)"
-ls -la
22
git status
23
git branch
24
0 commit comments