git 에서 deploy 실패 해결 방법
문제 발생 부분
Error: Creating Pages deployment failed Error: HttpError: Invalid deployment branch and no branch protection rules set in the environment. Deployments are only allowed from gh-pages
문제 원인
GitHub Actions
의 빌드 및 배포 소스를 활성화하지 않아서 발생한 문제이다.
해결방법
Settings > Pages > Build and deployment > Source: GitHub Actions
이렇게 설정을 변경해주면 성공적으로 deploy가 가능하다!
This post is licensed under CC BY 4.0 by the author.