forked from nih-sparc/docs.sparc.science
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (23 loc) · 673 Bytes
/
.travis.yml
File metadata and controls
30 lines (23 loc) · 673 Bytes
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
sudo: required # route your build to the container-based infrastructure for a faster build
language: ruby
rvm:
- 2.4.1
script:
- set -e; bundle exec jekyll build
branches:
only:
- master
cache:
- bundler # caching bundler gem packages will speed up build
deploy:
- provider: s3
access_key_id: "$AWS_ACCESS_KEY_ID"
secret_access_key: "$AWS_SECRET_ACCESS_KEY"
bucket: "$S3_BUCKET"
skip_cleanup: true
region: us-east-1
local_dir: _site
after_deploy:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin # put aws in the path
- set -e; aws cloudfront create-invalidation --distribution-id $CF_DISTRO_ID --paths /*