Configure GitHub Pages failed
Asked Answered
B

2

12

I was trying to use GitHub Pages (Static HTML By GitHub Actions) and facing this error.

Run actions/[email protected]
Warning: Get Pages site failed
Error: Create Pages site failed
Error: AxiosError: Request failed with status code 403

Any idea how to resolve it? All I have in my repository is a simple index.html which says

Hello

Any leads would be helpful, Thank you.

Configure GitHub pages failed

Brinson answered 3/10, 2022 at 15:34 Comment(0)
O
24

I had a similar issue and I think I found a solution.

I created a website project using next.js and I wanted some students I'm teaching to fork the project and be able to have their own sites too. The build worked on my site, but kept failing on the forked sites.

So we went into Settings/Pages in the forked projects and set the Source to GitHub Actions.

Screenshot of setting

I had done this on the original project and used a template to make the workflow file, but it seems you need to do this again when forking the project (or adding the workflow file manually).

Offish answered 6/10, 2022 at 0:5 Comment(1)
Thanks for your answer, curious why this was not mentioned anywhere in GitHub's docs.Mortify
C
0

I had an issue while configuring GitHub actions for next.js app.as shown here

Instead of using safari browser, switching to chrome browser resolved my issue.

Cauthen answered 20/12, 2023 at 4:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.