Cannot push to newly created gh-pages branch
See original GitHub issueDescription:
Something is going wrong with the git commands of the releases/v3 action. Specifically I am receiving the following error:
fatal: invalid reference: origin/gh-pages
Context:
I am slowly getting around to upgrading all my deployments to v3 and encountered an unusual bug. To fully reset everything, I deleted the gh-pages
branch from my repo and then switched over the deployment code to v3. Commit one here, Commit two here.
Focusing on the second commit after I had realized I had made a mistake, it produced this log.
Happy to rerun the action or try things on my side just very confused by the bug since it seems to be a git failure but not sure how to solve considering the git command is being run by the github-pages-deploy-action
itself.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Wow. Nice catch. @fennifith I just switched to
actions/checkout@v1
and it works for me hopefully it works for you as well. Thanks! 🎉That was it! I was just testing commands locally, coming to the conclusion that something was off with
git fetch
creating branch refs. Thanks a ton for the help @JamesIves!