Skip to content

Commit a1ca434

Browse files
committed
Setup for deploy on tag
1 parent c44bb84 commit a1ca434

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ before_deploy:
1515
- chmod 600 ./deploy/id_simpixel
1616
- ssh-add ./deploy/id_simpixel
1717
deploy:
18+
# deploy to beta on ALL commits
1819
- provider: script
1920
skip_cleanup: true
2021
script: rsync -rav --delete $TRAVIS_BUILD_DIR/dist/ simpixel@simpixel.io:/home/simpixel/beta.simpixel.io/
2122
on:
2223
all_branches: true
23-
# before_install:
24-
# - openssl aes-256-cbc -K $encrypted_571d7fdf2a62_key -iv $encrypted_571d7fdf2a62_iv
25-
# -in ./deploy/id_simpixel.enc -out ./deploy/id_simpixel -d
24+
# deploy to production on tag creation (only happens when release is created)
25+
- provider: script
26+
skip_cleanup: true
27+
script: rsync -rav --delete $TRAVIS_BUILD_DIR/dist/ simpixel@simpixel.io:/home/simpixel/simpixel.io/
28+
on:
29+
tags: true

0 commit comments

Comments
 (0)