Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 649f09a

Browse files
author
S0lll0s
committedFeb 20, 2016
Merge branch 'travis'
2 parents 9f70d24 + 4f837e4 commit 649f09a

8 files changed

+53
-13
lines changed
 

‎.gitignore

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
public/*.html
2-
public/*pdf*
3-
paged
4-
tmp
5-
6-
vendor
1+
.travis/deploy_key.pem
72

83
Gemfile.lock
4+
vendor

‎.gitmodules

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[submodule "book/code"]
22
path = book/code
3-
url = git@github.com:love2D-community/love2D-book-code.git
3+
url = https://github.com/love2d-community/love2d-book-code.git
44
[submodule "public"]
55
path = public
6-
url = git@github.com:love2D-book/love2D-book.github.io.git
6+
url = https://github.com/love2d-community/love2d-book.git
7+
branch = gh-pages

‎.travis.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: ruby
2+
3+
rvm:
4+
- 2.3.0
5+
6+
env:
7+
- REPO_URI=git@github.com:love2d-community/love2d-book.git
8+
# global:
9+
# - REPO_IO_URI=git@github.com:love2d-book/love2d-book.github.io.git
10+
11+
bundler_args: "--without production"
12+
before_install:
13+
- openssl aes-256-cbc -K $encrypted_df9da5f220ff_key -iv $encrypted_df9da5f220ff_iv
14+
-in .travis/deploy_key.pem.enc -out .travis/deploy_key.pem -d
15+
16+
script:
17+
- bundle exec ./render.sh
18+
19+
after_success:
20+
- .travis/deploy.sh

‎.travis/deploy.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
set -ev
3+
if [ "${TRAVIS_BRANCH}" = "master" ]; then
4+
eval "$(ssh-agent -s)"
5+
chmod 600 .travis/deploy_key.pem
6+
ssh-add .travis/deploy_key.pem
7+
8+
cd public
9+
git remote add pages $REPO_URI
10+
# git remote add io $REPO_IO_URI
11+
12+
git config --global user.email "travis@splashes"
13+
git config --global user.name "Travis Build Bot"
14+
15+
git add .
16+
git commit -m "Update to ${TRAVIS_COMMIT}"
17+
18+
git push pages
19+
# git push io gh-pages:master
20+
fi

‎.travis/deploy_key.pem.enc

3.17 KB
Binary file not shown.

‎.travis/deploy_key.pub

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDi+IyDRkt4gH8sOt6lOVqdI04/krlXm25EV5TSh9bmvIOk/brkA3InEag/awD/HQ/AYbxVXeluOSei0eHmuEOdgAgQt26zWi4nwJ2wmmCAmnmRPJto+U2LB1LAIRtBeBJR/QBiywacJ/sL3WYolxySgHVnLRNGX7+e6UUiXEySKUZb/ed5Y4zJNWbX93Ck2i9GFyOrXmdVwNZKvVCNbx8LeAQa0QnjYIlRsEuRwB8QNiJMsArV3HOsuwNQS6g7wsOeW8J81t3SgOZVLPPA4ZCDMOjm/4Mz7N9qqrFiCFlSkJYB1bzHrCF3Byo8240FVm9kQ1N/M5H7qDG5iDE1t0TEe1lBb6L/papLbb04Z44dYDZaHIBXuslzoiHRNwUXLDzzIUmgjQe25S+psUeTk/swHlYI1E+Qj2Dn3ioON025+wpzh21fYECYZcJmXLfEMOJPvK5JVZ2ateh+i/B+cjx1eW0YJ4UPnu0zvTxLYQn8LtL1RIPUAcxdf22Q07cJ+miEN3kValbiUS9Qy6dBicPAnJMluVTS8Ndg0onw48yaQeIJeBWNIn+zS/wvJIN71C/52Q87zJeYVQHUWZYrF/bn8yPFZNvXupFho/XJBPRljsUCTJl3eqOMZxWc3oG07EK/S8KuoV5171lj+HUlve8oHuDZx8epR9Iym8y5J7R+Pw== travis@love2d-book

‎Gemfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ source 'https://rubygems.org'
22

33
gem 'asciidoctor'
44
gem 'asciidoctor-pdf'
5-
gem 'guard'
6-
gem 'guard-livereload'
75
gem 'slim'
8-
gem 'thread_safe'
96
gem 'pygments.rb'
7+
8+
group :production do
9+
gem 'guard'
10+
gem 'guard-livereload'
11+
end

‎release.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ commit=`git show --format=format:%B -s`
3838
pushd public > /dev/null
3939
git add .
4040
echo $commit | git commit "$@" -aF -
41-
git push origin master:gh-pages
42-
git push io master
41+
git push origin
42+
git push io gh-pages:master
4343
popd > /dev/null
4444

4545
git add public

0 commit comments

Comments
 (0)
Please sign in to comment.