Skip to content

Commit

Permalink
chore(Release script): Remove rawgit from release script
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Nov 1, 2018
1 parent 7590203 commit c68fbe7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 74 deletions.
32 changes: 0 additions & 32 deletions .travis/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,6 @@

RED='\033[0;31m'
NC='\033[0m' # No Color
SSH_REPO="git@github.com:${TRIGGER_REPO_SLUG}"

getDeployKey () {
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
echo -e "${RED}The travis ecrypted key var is not available to builds triggered by pull requests. Aborting.${NC}"
exit 0
fi
# Get the deploy key by using Travis's stored variables to decrypt deploy_key.enc
ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key"
ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv"
echo "Checking Travis ENV VAR: ${ENCRYPTED_KEY_VAR}..."
ENCRYPTED_KEY=${!ENCRYPTED_KEY_VAR}
echo "Checking Travis ENV VAR: ${ENCRYPTED_IV_VAR}..."
ENCRYPTED_IV=${!ENCRYPTED_IV_VAR}
echo "Run Openssl"
openssl aes-256-cbc -K $ENCRYPTED_KEY -iv $ENCRYPTED_IV -in deploy_key.enc -out deploy_key -d
echo "Run chmod"
chmod 600 deploy_key
eval `ssh-agent -s`
ssh-add deploy_key
}

echo "Build all pf-react docs"
yarn storybook:build
Expand All @@ -35,14 +14,3 @@ if [ "${TRAVIS_REPO_SLUG}" != "${TRIGGER_REPO_SLUG}" -o "${TRAVIS_BRANCH}" != "$
echo -e "${RED}Exiting, this is not a production release.${NC}"
exit 0;
fi

getDeployKey
cd .public
git config --global user.email $COMMIT_AUTHOR_EMAIL
git config --global user.name $COMMIT_AUTHOR_USERNAME
git init
git add .
git commit -m "Deploy Storybook to GitHub Pages"

git remote add ssh-origin $SSH_REPO
git push --force --quiet ssh-origin master:gh-pages
Binary file removed deploy_key.enc
Binary file not shown.
42 changes: 0 additions & 42 deletions release.sh

This file was deleted.

0 comments on commit c68fbe7

Please sign in to comment.