Skip to content

Commit

Permalink
Fix Travis Deploy
Browse files Browse the repository at this point in the history
This should make Travis only try to deploy a Gem once, and avoid the
race condition encountered during the v1.1.0 release

This is a bit of a hack. To make sure that only one build tries to
deploy, I am setting a special flag during the GHP build, and then only
trying to deploy if that flag is set. This will prevent deploy during
any other Travis build.

Fixes #165
  • Loading branch information
pathawks committed Jun 17, 2017
1 parent d8b093a commit de53f55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ matrix:
include:
# GitHub Pages
- rvm: 2.3.3
env: JEKYLL_VERSION=3.4.3
env:
- JEKYLL_VERSION=3.4.3
- GITHUB_PAGES=1 # Only set on one build in matrix
env:
matrix:
- JEKYLL_VERSION=3.3.0
Expand Down Expand Up @@ -42,3 +44,4 @@ deploy:
on:
tags: true
repo: jekyll/jekyll-sitemap
condition: "$GITHUB_PAGES == 1"

0 comments on commit de53f55

Please sign in to comment.