forked from Turbo87/leaflet-sidebar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TravisCI: Enable automatic deployment to GitHub Pages
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
language: node_js | ||
|
||
sudo: false | ||
|
||
after_success: | ||
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then bash .travis/deploy.sh; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
eval "$(ssh-agent -s)" | ||
|
||
openssl aes-256-cbc -K $encrypted_f72e501d769d_key -iv $encrypted_f72e501d769d_iv -in .travis/deploy_key.pem.enc -out .travis/deploy_key.pem -d | ||
chmod 600 .travis/deploy_key.pem | ||
ssh-add .travis/deploy_key.pem | ||
|
||
mkdir gh-pages | ||
cd gh-pages | ||
cp -R ../examples ../src . | ||
|
||
git init | ||
git config user.name "Travis" | ||
git config user.email "[email protected]" | ||
git add . | ||
git commit -m "Deploy to GitHub Pages" | ||
git push --force --quiet [email protected]:Turbo87/leaflet-sidebar.git master:gh-pages > /dev/null 2>&1 |
Binary file not shown.