-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (26 loc) · 821 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
26
27
28
29
30
31
dist: trusty
language: node_js
node_js:
- "node"
cache: yarn
branches:
only:
- sources
before_install:
- openssl aes-256-cbc -K $encrypted_f4bf9b6bfcf8_key -iv $encrypted_f4bf9b6bfcf8_iv -in id_rsa_travis_deploy_gh_pages.enc -out id_rsa_travis_deploy_gh_pages -d
- chmod 600 id_rsa_travis_deploy_gh_pages
- eval `ssh-agent -s`
- ssh-add id_rsa_travis_deploy_gh_pages
- git config user.name "davherrmann"
- git config user.email "[email protected]"
script:
- git clone [email protected]:davherrmann/davherrmann.github.io.git public --branch master --single-branch
- cd public
- ls | grep -v .git | xargs rm -r
- cd ..
- node index.js
after_success:
- cd public
- git add --all .
- git commit -m "rebuild website triggered by commit ${TRAVIS_COMMIT}"
- git push origin master