sbt / sbt-ghpages

git, site and ghpages support for sbt projects.
Other
91 stars 20 forks source link

Publish fails if the gh-pages branch does not already exist #67

Closed michaelmior closed 3 years ago

michaelmior commented 3 years ago

If the gh-pages branch does not already exist, publishing fails with the error below. I was able to solve this by pushing an empty to commit to the branch, but it would be nice if this case could be detected and the branch created automatically.

[error] GitHubError: Access GitHub API has failed - NotFoundError(Not Found, https://docs.github.com/rest)
[error] (publishToGitHubPages) GitHubError: Access GitHub API has failed - NotFoundError(Not Found, https://docs.github.com/rest)
michaelmior commented 3 years ago

My apologies, wrong repository! I was using another similar plugin.