-
Notifications
You must be signed in to change notification settings - Fork 11
/
circle.yml
33 lines (33 loc) · 905 Bytes
/
circle.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
version: 2
jobs:
build:
working_directory: ~/ngx-facebook-example/
docker:
- image: node:7
branches:
- only:
- master
steps:
- checkout
- restore_cache:
key: npm_{{ checksum "package.json" }}
- run: npm i
- save_cache:
key: npm_{{ checksum "package.json" }}
paths:
- ~/ngx-facebook-example/node_modules/
- run:
name: Building project
command: npm run build:prod
- add_ssh_keys
- run:
name: Deploying to gh-pages
command: |
git checkout gh-pages
mv dist/* .
rm -rf dist node_modules
git config --global user.name "ZM Bot"
git config --global user.email "[email protected]"
git add .
git commit -am "Automated build [ci skip]"
git push origin gh-pages || true