Fixed issues with deploy script
This commit is contained in:
parent
f0b14cecf3
commit
7e0a9e441e
|
@ -6,7 +6,7 @@ if test "$(git config remote.origin.url)" != "https://github.com/jsmaniac/scribb
|
||||||
elif test "$TRAVIS_PULL_REQUEST" != "false"; then
|
elif test "$TRAVIS_PULL_REQUEST" != "false"; then
|
||||||
echo "This is a Pull Request, will not deploy gh-pages."
|
echo "This is a Pull Request, will not deploy gh-pages."
|
||||||
elif test "$TRAVIS_BRANCH" = "v2.6-racket-mini-source"; then
|
elif test "$TRAVIS_BRANCH" = "v2.6-racket-mini-source"; then
|
||||||
echo "Not on master branch, will not deploy gh-pages."
|
echo "Not on v2.6-racket-mini-source branch (TRAVIS_BRANCH = $TRAVIS_BRANCH), will not deploy gh-pages."
|
||||||
elif test -z "${encrypted_1b66487e02e5_key:-}" -o -z "${encrypted_1b66487e02e5_iv:-}"; then
|
elif test -z "${encrypted_1b66487e02e5_key:-}" -o -z "${encrypted_1b66487e02e5_iv:-}"; then
|
||||||
echo "Travis CI secure environment variables are unavailable, will not deploy gh-pages."
|
echo "Travis CI secure environment variables are unavailable, will not deploy gh-pages."
|
||||||
else
|
else
|
||||||
|
@ -17,11 +17,13 @@ else
|
||||||
git config --global user.email "(git log --format="%aE" HEAD -1)"
|
git config --global user.email "(git log --format="%aE" HEAD -1)"
|
||||||
|
|
||||||
# SSH configuration
|
# SSH configuration
|
||||||
|
set +x
|
||||||
if openssl aes-256-cbc -K $encrypted_675a73236f08_key -iv $encrypted_675a73236f08_iv -in travis-deploy-key-id_rsa.enc -out travis-deploy-key-id_rsa -d >/dev/null 2>&1; then
|
if openssl aes-256-cbc -K $encrypted_675a73236f08_key -iv $encrypted_675a73236f08_iv -in travis-deploy-key-id_rsa.enc -out travis-deploy-key-id_rsa -d >/dev/null 2>&1; then
|
||||||
echo "Dectypred key successfully."
|
echo "Dectypred key successfully."
|
||||||
else
|
else
|
||||||
echo "Error while decrypting key."
|
echo "Error while decrypting key."
|
||||||
fi
|
fi
|
||||||
|
set -x
|
||||||
chmod 600 travis-deploy-key-id_rsa
|
chmod 600 travis-deploy-key-id_rsa
|
||||||
eval `ssh-agent -s`
|
eval `ssh-agent -s`
|
||||||
ssh-add travis-deploy-key-id_rsa
|
ssh-add travis-deploy-key-id_rsa
|
||||||
|
|
Loading…
Reference in New Issue
Block a user