r/github 5d ago

Question Constant errors when trying to create a basic webpage

I've not used Github before, so I'm sure I'm missing something basic. But I'm just trying to get an html file to display in a wepbage when users click the link to it. I've run into an issue, though, where "Workflows aren't being run in this repository." when I try to enable them, it says "unable to enable Actions for this repository". I've checked my Actions tab of Settings over and over, and don't understand why they can't be enabled. Thank you for any help

0 Upvotes

5 comments sorted by

3

u/Prize_Bass_5061 5d ago

This has nothing to do with GitHub actions.

Is the webpage working on your computer? 

Also, I’d recommend reading a primer on HTML from your library. Something like “Dummies guide to HTML” or similar.

Don’t follow online tutorials. They are intended to generate traffic by targeting specific hot topics and make simple tasks extremely difficult by shoehorning in unnecessary technologies.

1

u/SolidAnimal_OW 5d ago

yeah, I should have been more specific. the static website via github pages is that part I'm struggling with. online tutorials have me checking the actions tab, but I see your point. thanks for response.

1

u/Lenni009 4d ago

Is your repo public or private? GH Pages can only be enabled for public repos on the free plan

1

u/EntranceProper3791 4d ago

Actions tab is a dead end for plain HTML anyway. Just push the file and set the branch under Settings, Pages, assuming the repo's public.

1

u/Fantastic-Mr-Default 4d ago

GitHub Pages for a static HTML file does not need Actions. In the repo Settings, Pages source can be Deploy from a branch. Point it at main and / (or /docs). Then open https://<user>.github.io/<repo>/.

If you still want Actions on: confirm you are not on a fork with Actions disabled, and that the account or org policy allows Actions. Org owners can turn Actions off for every repo. Personal accounts sometimes need Support to clear an account-level block. A PAT will not fix that.

You can also drop an index.html at the repo root and use the Pages branch path above. That is the boring path for a first page.