sbt / sbt-ghpages

git, site and ghpages support for sbt projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

michaelmior opened this issue · comments

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)

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