This repository was archived by the owner on Sep 30, 2020. It is now read-only.
File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,16 @@ language: ruby
2
2
rvm :
3
3
- 2.1
4
4
5
- # Cloudfront invalidation: Decrypt credentials, then run
5
+ # Cloudfront invalidation: If not PR, decrypt credentials, then run
6
6
# https://github.com/laurilehmijoki/cf-s3-invalidator if build succeeded
7
7
before_install :
8
- - openssl aes-256-cbc -K $encrypted_13e2bd2b9e2d_key -iv $encrypted_13e2bd2b9e2d_iv -in _cf_s3_invalidator.yml.enc -out _cf_s3_invalidator.yml -d
9
- install : cf-s3-invalidator
10
- after_success : cf-s3-inv
8
+ - [ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_13e2bd2b9e2d_key -iv $encrypted_13e2bd2b9e2d_iv -in _cf_s3_invalidator.yml.enc -out _cf_s3_invalidator.yml -d
9
+ install :
10
+ - [ "${TRAVIS_PULL_REQUEST}" = "false" ] && cf-s3-invalidator
11
+ after_success :
12
+ - [ "${TRAVIS_PULL_REQUEST}" = "false" ] && cf-s3-inv
11
13
12
- # Build and deploy the site to the S3 bucket on push to master
14
+ # Build and deploy the site to the S3 bucket on push to master, unless PR
13
15
script : jekyll build
14
16
branches :
15
17
only :
@@ -27,3 +29,4 @@ deploy:
27
29
on :
28
30
repo : rust-lang/rust-www
29
31
branch : master
32
+ condition : " ${TRAVIS_PULLREQUEST}" = "false"
You can’t perform that action at this time.
0 commit comments