forked from kactus-io/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (31 loc) · 843 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
32
33
34
35
36
branches:
only:
- master
language: node_js
node_js:
- "8"
cache:
directories:
- $HOME/.cache/pip
- node_modules
before_install:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
install:
- npm install
script:
- node ./node_modules/ugly-build/index.js build
deploy:
- provider: pages
skip_cleanup: true
github_token: $GH_TOKEN # Set in travis-ci.org dashboard
local_dir: .build
- provider: s3
skip_cleanup: true
access_key_id: $AWS_ACCESS_KEY_ID # Set in travis-ci.org dashboard
secret_access_key: $AWS_SECRET_ACCESS_KEY # Set in travis-ci.org dashboard
bucket: $AWS_S3_BUCKED # Set in travis-ci.org dashboard
local_dir: .build
region: eu-west-1
after_deploy:
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"