Skip to content

Commit

Permalink
Automatic build & deploy from Travis-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiX committed Oct 20, 2016
1 parent b4b0ad8 commit 3a722aa
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 44 deletions.
24 changes: 24 additions & 0 deletions .github/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh

set -ue

cd "$(dirname "$0")"
P=../pages

cp deploy_key ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa

[ -d $P ] && rm -Rfv $P
git clone --depth=10 --branch=gh-pages [email protected]:TobiX/jenkins-neo2-theme.git $P

rsync -r --del --verbose ../dist/* $P/dist/

cd $P

git config user.email '[email protected]'
git config user.name 'Travis-CI Website Bot'
git config push.default simple

git add -A .
git commit -a -m "Update website from commit $TRAVIS_COMMIT"
git push origin HEAD:gh-pages
Binary file added .github/deploy_key.enc
Binary file not shown.
1 change: 1 addition & 0 deletions .github/deploy_key.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGmt3uJojggubNcFMpmpOyRPSZD+BWGiw0z1B3KBsAlxHEAFa1/+cGsL0Zt1BJDZX9F6fPzUNrMwVvYpuKRtA7X+m596Kk+Cc1YqyU4//zCK+XTidYVzKmIGH3Est09U/nX5HynK2YeJzR2lSQZzDE6FYOZVZEQg/Qg+B/6OcRunoRFclcqQHkHWtoZ1ir9ADFLe5tfEf0lMpu0WzzopQDwu2wu8poZwHoKXPh7xFteH1R+Y8qxZ+JT9hb+YFxNenM7CGUQsTin6IapqyKrJsI1oma2fzxd4VCDlilJS1TYpjfFrpMEoXdj6Y1ef56AT37fM2Vy1RAEZyHFETKANR9 jenknis-neo2-theme-autodeploy
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: node_js
node_js:
- 6
before_script:
- npm install grunt-cli -g
after_success:
- if [ -e .github/deploy_key ]; then .github/deploy.sh; fi
before_install:
- openssl aes-256-cbc -K $encrypted_815954d41479_key -iv $encrypted_815954d41479_iv
-in .github/deploy_key.enc -out .github/deploy_key -d
15 changes: 0 additions & 15 deletions Vagrantfile

This file was deleted.

29 changes: 0 additions & 29 deletions publish.sh

This file was deleted.

0 comments on commit 3a722aa

Please sign in to comment.