-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
44 lines (42 loc) · 1.4 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
language: node_js
node_js:
- "8"
branches:
only:
- master
install:
# Install any dependencies required for building your site here.
# `awscli` is required for invalidation of CloudFront distributions.
- pip install --user awscli
- npm install
jobs:
include:
- stage: deploy
script: echo "Deploying to S3"
deploy:
- provider: s3
bucket: sprocketleague.lance.gg
region: us-west-2
local_dir: dist
acl: public_read
skip_cleanup: true
on:
branch: master
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
- provider: s3
bucket: sprocketleagueus.lance.gg
region: us-west-2
local_dir: dist
acl: public_read
skip_cleanup: true
on:
branch: master
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
- stage: invalidate
# Allow `awscli` to make requests to CloudFront.
script: aws configure set preview.cloudfront true && aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
- stage: invalidate
# Allow `awscli` to make requests to CloudFront.
script: aws configure set preview.cloudfront true && aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID2 --paths "/*"