-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
51 lines (39 loc) · 869 Bytes
/
.travis.yml
File metadata and controls
51 lines (39 loc) · 869 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: ruby
rvm:
- 2.7.2
addons:
apt:
packages:
- libcurl4-openssl-dev
cache: bundler
before_install:
- sudo update-ca-certificates
install:
- bundle install
before_script:
- chmod +x script/cibuild.sh
script: script/cibuild.sh
branches:
only:
- master
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- JEKYLL_ENV=production
before_deploy:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
- chmod +x script/empty-bucket.sh
- script/empty-bucket.sh
deploy:
- provider: s3
access_key_id: "$AWS_ACCESS_KEY_ID"
secret_access_key: "$AWS_SECRET_ACCESS_KEY"
bucket: www-nichenjie-com
skip_cleanup: true
region: ap-east-1
local_dir: _site
cache_control: "public, max-age=31536000"
after_deploy:
- chmod +x script/invalidate-cache.sh
- script/invalidate-cache.sh