Skip to content

Commit

Permalink
Setup for deploy on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
adammhaile committed Apr 5, 2017
1 parent c44bb84 commit a1ca434
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ before_deploy:
- chmod 600 ./deploy/id_simpixel
- ssh-add ./deploy/id_simpixel
deploy:
# deploy to beta on ALL commits
- provider: script
skip_cleanup: true
script: rsync -rav --delete $TRAVIS_BUILD_DIR/dist/ [email protected]:/home/simpixel/beta.simpixel.io/
on:
all_branches: true
# before_install:
# - openssl aes-256-cbc -K $encrypted_571d7fdf2a62_key -iv $encrypted_571d7fdf2a62_iv
# -in ./deploy/id_simpixel.enc -out ./deploy/id_simpixel -d
# deploy to production on tag creation (only happens when release is created)
- provider: script
skip_cleanup: true
script: rsync -rav --delete $TRAVIS_BUILD_DIR/dist/ [email protected]:/home/simpixel/simpixel.io/
on:
tags: true

0 comments on commit a1ca434

Please sign in to comment.