Skip to content

Commit

Permalink
🔥 Don't fail on CI docs step when testing a fork
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinroger authored and jesserockz committed Mar 12, 2018
1 parent 6fd2a9e commit bc4c899
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ jobs:
- run:
name: generate and publish docs
command: |
if [ -z ${PRIVATE_KEY_ENCRYPT_KEY+x} ]
then
echo "Fork detected. Ignoring..."
exit 0
fi
openssl aes-256-cbc -d -in ./.circleci/assets/id_rsa.enc -k "${PRIVATE_KEY_ENCRYPT_KEY}" >> /tmp/deploy_rsa
eval "$(ssh-agent -s)"
chmod 600 /tmp/deploy_rsa
Expand Down

0 comments on commit bc4c899

Please sign in to comment.