-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
25 lines (25 loc) · 929 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
language: ruby
rvm:
- 2.6.0
before_install:
- gem update --system
- gem install bundler
script:
- git config --global user.email "[email protected]"
- git config --global user.name "Ma Lucheng"
- git config --global push.default simple
- bundle install
- bundle exec asciidoctor-pdf-cjk-kai_gen_gothic-install
- bundle exec rake
- git remote add upstream "https://${GH_TOKEN}@github.com/teddy-ma/how-to-learn-emacs-chinese-edition.git"
- git fetch upstream
- git reset upstream/gh-pages
- cp build/how-to-learn-emacs-html/how-to-learn-emacs-html/index.html .
- cp build/how-to-learn-emacs-pdf/how-to-learn-emacs-pdf.pdf .
- rm -rf vendor
- git add -A .
- git commit -m "update from travis"
- git push -q upstream HEAD:gh-pages
env:
global:
secure: KvgOd/FYNooIVPdn7yUG0vuZAu2wEnLIVETgawjXm2otd7BHNiHF2mfsT6xedaFvT459M+j71XNVVDMngDAuCU7K1zQaV9MBCAwTojeNSsd/j91DRr9Gdi+BCwPkms5X2kAc0E2DewzGEICAJ7L8rRkaZuAfEXJWgb8IvqSHWaQ=