-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
36 lines (36 loc) · 1.11 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
# .travis.yml
language: ruby
rvm:
- 2.4.1
install: gem install ruby_dep -v 1.3.1 && gem install jekyll -v 2.4.0 && gem install s3_website
cache:
yarn: true
script:
- cd website && yarn && yarn run build
branches:
only:
- master
- dev
deploy:
- provider: s3
# You can refer to environment variables from Travis repo settings!
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
# Name of the S3 bucket to which your site should be uploaded.
bucket: developers.polymath.network
# Prevent Travis from deleting your built site so it can be uploaded.
skip_cleanup: true
local_dir: build/Polymath-Developer-Portal
on:
branch: master
- provider: s3
# You can refer to environment variables from Travis repo settings!
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
# Name of the S3 bucket to which your site should be uploaded.
bucket: polymath-developers-staging
# Prevent Travis from deleting your built site so it can be uploaded.
skip_cleanup: true
local_dir: build/Polymath-Developer-Portal
on:
branch: dev