I keep get build error while trying to create github page
Asked Answered
E

1

0

I'm trying to create a github page using jekyll alfolio. I forked the repo from their account and cloned it and made some changes, then i pushed it to my repository and "pages-build-deployment" fails but the "deploy" not and it seems the deploy works well. don't know whats the problem. it would be great if someone help me with this.

if you guys any more information, let me know.

thanks in advance.

Elmiraelmo answered 27/7, 2022 at 12:27 Comment(2)
Please include any errors you have recieved and the code you have changed.Sarchet
after i changed the code I forked, I tested it locally and it worked properly, then I pushed it to my repo and I was getting this message:"pages build and deployment by github pages bot, failed". then i change some code that I mentioned in the accepted answer and that fixed the problem.Elmiraelmo
E
0

I found the solution to this problem. I added the following part to .github/workflow/deploy.yml:

- name: Fix permission
  run: |
  chmod a+x bin/*
  git commit -am "add permission"

then I deployed it using bin/deploy --user.

Elmiraelmo answered 29/7, 2022 at 8:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.