Moved rsync exclusions to a separate file.

This commit is contained in:
Perry Woodin 2016-11-16 07:32:43 -05:00
parent 8066899862
commit 90058c9a52
3 changed files with 5 additions and 1 deletions

View file

@ -28,6 +28,6 @@ before_deploy:
deploy:
provider: script
skip_cleanup: true
script: rsync -r -c -v --delete-after --exclude '*.pem' --exclude '*.enc' --exclude '*.sh' $TRAVIS_BUILD_DIR/_site/ $user@$hostname:$production_path
script: rsync -r -c -v --delete-after --exclude-from 'ciexclude.txt' $TRAVIS_BUILD_DIR/_site/ $user@$hostname:$production_path
on:
branch: master

View file

@ -2,6 +2,7 @@ markdown: kramdown
exclude:
- README.md
- rss.xml
- ciexclude.txt
- _posts/README.md
- assets/mockups/
- vendor/

3
ciexclude.txt Normal file
View file

@ -0,0 +1,3 @@
*.pem
*.enc
*.sh