Skip to content

pages build and deployment action no longer being run by GitHub Pages after push to main branch causing a 404? #153969

Answered by Dominique8D
Dominique8D asked this question in Pages
Discussion options

You must be logged in to vote

In the end I solved it myself like so:

  • Go to GitHub Pages settings
  • Under Build and deployment set branch to gh-pages
  • Using terminal of repo:
    • On my master/main branch build my project using: npm run build
    • Push dist to gh-pages branch using: npx gh-pages -d dist
  • Afterwards the page is visible again

What I think happened is that this part happened automatically previously but as some update I need to do this manually.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Dominique8D
Comment options

Answer selected by Dominique8D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Pages Host a static website, right from your repo
1 participant