-
Notifications
You must be signed in to change notification settings - Fork 10
/
wercker.yml
50 lines (45 loc) · 1.12 KB
/
wercker.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
box: node:4
build:
steps:
- script:
name: echo nodejs information
code: |
echo "node version $(node -v) running"
echo "npm version $(npm -v) running"
- npm-install
- npm-test
- script:
name: Build static site
code: |
npm run build
deploy:
steps:
- npm-install
- script:
name: Build static site
code: |
npm run build
- add-ssh-key:
keyname: DEPLOY_KEY
- add-to-known_hosts:
hostname: $DEPLOY_SSH_SERVER
fingerprint: $DEPLOY_SSH_FINGERPRINT
port: $DEPLOY_SSH_PORT
- script:
name: Setup git
code: |
git config --global user.email "wercker@hackafe.org"
git config --global user.name "Wercker Deployer"
- script:
name: Init repo
code: |
cd build
git init .
git add .
git commit -m "wercker build $WERCKER_BUILD_URL"
- script:
name: Push to gh-pages
code: |
cd build
git remote add github $DEPLOY_REPO
git push -f github master:$DEPLOY_BRANCH