-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
52 lines (36 loc) · 1.3 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
addons:
apt:
packages:
- tar
sudo: false
language: node_js
node_js:
- iojs-v2.0.0
cache:
directories:
- node_modules
script: gulp ci
after_success: >
ls -a && tar czf jsoc.io-$TRAVIS_BRANCH.tar.gz package.json node_modules/ src/ README.md gulpfile.js webpack.config.js events/ && \
if [[ $TRAVIS_BRANCH == 'master' ]]; then
rm -rf deploy || exit 0 && \
mkdir deploy && cp -R dist/* deploy && cd deploy && git init && \
git config user.name "TravisCI" && \
git config user.email "travis@jsoc.io" && \
echo 'jsoc.io' > ./CNAME && git add . && \
git commit -am "Deploying jsoc.io to gh-pages" && git push --force "https://${GH_TOKEN}@${DEPLOY_REPO}" master:gh-pages
fi
env:
global:
- DEPLOY_REPO=github.com/jsoc/jsoc.io.git
- secure: e1L21tRJZIAd7Cp/3P/adIQGpNhAng550Wj9IcG+5uXLxR01T4XjcoCE2TDqUfAf023HEt9ZFCidtRUlOFMTnQ6gbf8sZlRNrvuMQjw0aCEvocv95KoOu5l4+NNAnFaVZRpsKzt9deZJ+QclFwsM/JAFY9RyUS/tukuL8KwiDYY=
deploy:
provider: releases
file: jsoc.io-$TRAVIS_BRANCH.tar.gz
repo: jsoc/jsoc.io
skip_cleanup: true
on:
tags: true
all_branches: true
api_key:
secure: iOND9VyulKIKQH6JwtlfHLZAAYoTfpAUi0mkYLOuwqee+QSwt2bMBu07OyN37Al+lwX02h1vBKrOxj+riT8P+qxthNNCoYd09b1D+ZLgQt1eh8OYPsocrGOxO6OrU8TM8bo+FT35QWso/OAFJvt6NqdebOk0oyUJxTaurXifpbI=