Skip to content

Commit b4222a3

Browse files
[IMPROVE] Improving deployment process. (#19)
* [IMPROVE] Improving deployment process to isolate deployment step with a pre-configuration step.
1 parent e826f3b commit b4222a3

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ branches:
1111
before_deploy:
1212
- openssl aes-256-cbc -K $encrypted_550be8be9cea_key -iv $encrypted_550be8be9cea_iv
1313
-in keypair.pem.enc -out keypair.pem -d
14+
- bundle exec jekyll build --config _config_production.yml,_config.yml
15+
- export JEKYLL_ENV=production
16+
- chmod 600 ./keypair.pem
1417
deploy:
1518
skip_cleanup: true
1619
provider: script
1720
script: scripts/deploy
1821
on:
1922
branch: master
23+
after_deploy:
24+
- rm ./keypair.pem

scripts/deploy

-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
#!/bin/bash
22

3-
export JEKYLL_ENV=production
4-
5-
bundle exec jekyll build --config _config_production.yml,_config.yml
6-
7-
chmod 600 ./keypair.pem || exit
8-
93
rsync -avr --rsh="ssh -i keypair.pem -o StrictHostKeyChecking=no" --delete-after --delete-excluded _site/ [email protected]:/blog/ || exit
10-
11-
rm ./keypair.pem || exit

0 commit comments

Comments
 (0)