79183098

Date: 2024-11-13 00:39:29
Score: 1.5
Natty:
Report link

I’ve resolved the issue. I noticed that the deployment for the main branch kept getting stuck, even after multiple attempts to rerun all jobs. Since I couldn’t view what was happening in the backend, I tried deploying a gh-pages branch instead.

Here’s what I did:

  1. Set up the gh-pages npm package to automate deploying only the build files to a gh-pages branch.
  2. Updated my package.json with a "deploy" script:
"scripts": {
  "predeploy": "npm run build",
  "deploy": "gh-pages -d build"
}
  1. Now, each time I want to update the live site, I just run npm run deploy. This process ensures that the gh-pages branch is kept in sync with the latest build, and GitHub Pages correctly reflects my updates now.
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jerry Chen