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)
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.