File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,16 @@ node_js:
3
3
- ' 7'
4
4
sudo : false
5
5
script :
6
- - $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" && make travis-deploy
6
+ - sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
7
+ - sudo ln -s /opt/calibre/ebook-convert /usr/local/bin/
8
+ - sh ./deploy.sh
7
9
before_install :
8
10
- openssl aes-256-cbc -K $encrypted_e8c0cd5f9239_key -iv $encrypted_e8c0cd5f9239_iv -in deploy_key.enc -out deploy_key -d
9
11
- chmod 600 deploy_key
10
12
- eval `ssh-agent -s`
11
13
- ssh-add deploy_key
12
14
- git config --global user.name "publisher"
13
15
-
git config --global user.email "[email protected] "
16
+ branches :
17
+ only :
18
+ - master
Original file line number Diff line number Diff line change @@ -41,10 +41,3 @@ publish: build pdf epub mobi
41
41
clean :
42
42
rm -rf _book
43
43
rm -rf node_modules
44
-
45
- travis-deploy :
46
- sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c " import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
47
- sudo ln -s /opt/calibre/ebook-convert /usr/local/bin/
48
- $(MAKE ) install
49
- $(MAKE ) publish
50
-
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ if [ " $TRAVIS_PULL_REQUEST " != " false" ]; then
5
+ exit 0
6
+ fi
7
+
8
+ make publish
You can’t perform that action at this time.
0 commit comments