asciidoctor / jekyll-asciidoc-quickstart

A template project for creating AsciiDoc-based websites using Jekyll.
https://asciidoctor.github.io/jekyll-asciidoc-quickstart/
MIT License
119 stars 159 forks source link

env.global not present #22

Closed zako42 closed 7 years ago

zako42 commented 7 years ago

I'm going through the instructions and got to section 6 ("Encrypt the GitHub Token for Travis CI"). #1 says to move to the directory with env.global, but I do not see that file.

I continued with the instructions and things seemed to work ok, but when I went to travis-ci.org to check on the build, it died with the following:

fatal: unable to auto-detect email address (got 'travis@testing-docker-4a9268cb-1d71-4fd1-a68f-ecb6023742e9.(none)')

rake aborted!

not sure if this is related to not having the env.global file? Or I am doing something stupid? Sorry I'm not too familiar with travis-ci.

johncarl81 commented 7 years ago

I've been getting the same error recently too. Here's the root cause: https://github.com/jirutka/rake-jekyll/issues/14. The fix is to change your RakeFile to the following:

require 'rake-jekyll'

Rake::Jekyll::GitDeployTask.new(:deploy) do |t|
    t.committer = 'Jekyll<jekyll@jekyll.com>'
end
johncarl81 commented 7 years ago

Related fix: https://github.com/asciidoctor/jekyll-asciidoc-quickstart/pull/21

zako42 commented 7 years ago

Thanks johncarl81 -- I just applied your fix above and it worked!