Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support: Can't deploy a Hugo site due to "The requested URL returned error: 403" #744

Closed
3 tasks done
EmilyGraceSeville7cf opened this issue May 6, 2022 · 6 comments
Closed
3 tasks done
Assignees
Labels
support User support

Comments

@EmilyGraceSeville7cf
Copy link

EmilyGraceSeville7cf commented May 6, 2022

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your question

I have a personal repo and I want deploy this site. But I can't due to The requested URL returned error: 403 error. Why it happens? What am I missing to successfully deploy my site? As I understand:

  • site is being built to public folder
  • this folder contents is pushed to gh-pages
  • gh-pages is used to deploy site

Is it right? Why there is no gh-pages branch created after any new commit?

Relevant links

Public repository: https://github.com/EmilySeville7cfg/EmilySeville7cfg.github.io
YAML config: https://github.com/EmilySeville7cfg/EmilySeville7cfg.github.io/blob/master/config.yml
YAML workflow: https://github.com/EmilySeville7cfg/EmilySeville7cfg.github.io/blob/master/.github/workflows/cd.yml

Relevant log output

https://github.com/EmilySeville7cfg/EmilySeville7cfg.github.io/runs/6324319546?check_suite_focus=true#step:5:106

Additional context.

No response

@peaceiris
Copy link
Owner

peaceiris commented May 6, 2022

This is the same as the issue #742 (comment)

Please change the repository setting (Go to Actions > General > Workflow permissions) as follows:

  • Toggle the Read and write permissions

スクリーンショット 2022-05-06 23 26 07

@EmilyGraceSeville7cf
Copy link
Author

EmilyGraceSeville7cf commented May 6, 2022

Issue is solved but my site is still inaccessible. 🤔

@peaceiris
Copy link
Owner

We need to select the branch to deploy in the Pages tab of the repository settings.

スクリーンショット 2022-05-06 23 36 46

@EmilyGraceSeville7cf
Copy link
Author

EmilyGraceSeville7cf commented May 6, 2022

Your GitHub Pages site is currently being built from the master branch is confusing description because when I hear built I think about just building site via some static site generator. Thanks! Everything works now. ❤️

@yashash-pugalia
Copy link

Please change the repository setting (Go to Actions > General > Workflow permissions) as follows:

  • Toggle the Read and write permissions

would be nic if a notice about this is added to the documentation

@peaceiris
Copy link
Owner

#753 is another solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support User support
Projects
None yet
Development

No branches or pull requests

3 participants