Skip to content

Commit

Permalink
chore: Automatic git push after release (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yserz committed Jan 24, 2018
1 parent d4e2fcd commit 387352b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@ notifications:
after_success:
- |
if [ "${WILL_RELEASE}" == 0 ]; then
git checkout master;
git config --global user.email webapp+travis@wire.com
git config --global user.name "Wire Travis CI"
mkdir -p temp
openssl aes-256-cbc -K $encrypted_d95474b06f11_key -iv $encrypted_d95474b06f11_iv -in deploy.enc -out temp/deploy -d
chmod 600 temp/deploy
eval `ssh-agent -s`
ssh-add deploy
rm -rf temp
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> "${HOME}/.npmrc" && \
git checkout master;
yarn release;
fi
Binary file added deploy.enc
Binary file not shown.

0 comments on commit 387352b

Please sign in to comment.