Gh-pages 部署后未更新。

huangapple go评论64阅读模式
英文:

Gh-pages not updating after deployment

问题

Hi,昨天我运行npm run deploy时,收到了一封电子邮件,报告出现了错误。网站仍然可以访问,但我提交的更改未实施。如何同步ghpages和最近的提交?

我尝试在另一台笔记本电脑上重新运行npm run deploy
我尝试清除node modules中的ghpages缓存,然后重新运行npm run deploy
我尝试清除浏览器缓存。
如果找不到解决方案,可能会尝试删除存储库并使用新存储库重新构建ghpages

这是邮件的内容:

reponame页面构建和部署:某些作业未成功完成
查看工作流运行
构建
页面构建和部署/构建
在0秒内失败

页面构建和部署/构建的注释1
报告构建状态
页面构建和部署/报告构建状态
在0秒内失败

页面构建和部署/报告构建状态的注释1
部署
页面构建和部署/部署
跳过

英文:

Hi got an email yesterday when I ran npm run deploy that it ran into an error. The site is still up and working but none of the changes I commited are implemented. How do I go about syncing the ghpages and recent commits?

Tried rerunning npm run deploy on other laptop
Tried clearing ghpages cache in node modules then reran npm run deploy
Tried clearing browser cache
If I can't find a solution, might try deleting the repo and rebuilding the ghpages with a fresh repo.

This is what the email said:

reponame pages build and deployment: Some jobs were not successful
View workflow run
build
pages build and deployment / build
Failed in 0 seconds

annotations for pages build and deployment / build 1
report-build-status
pages build and deployment / report-build-status
Failed in 0 seconds

annotations for pages build and deployment / report-build-status 1
deploy
pages build and deployment / deploy
Skipped

答案1

得分: 1

好的,以下是翻译好的部分:

"Ok in case this helps anyone else, turns out if you go to the gh-pages branch on github, there is either a green check mark or a red x mark that'll indicate to see if all the checks have passed. if they haven't then it wont update.

I clicked on the x and clicked on one of the errors which asked me if I wanted to re-run all the jobs, after doing so it fixed my issue. I'm not sure what the cause of the issue was but will update this answer if i figure it out."

英文:

Ok in case this helps anyone else, turns out if you go to the gh-pages branch on github, there is either a green check mark or a red x mark that'll indicate to see if all the checks have passed. if they haven't then it wont update.

I clicked on the x and clicked on one of the errors which asked me if I wanted to re-run all the jobs, after doing so it fixed my issue. I'm not sure what the cause of the issue was but will update this answer if i figure it out

huangapple
  • 本文由 发表于 2023年3月4日 02:31:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/75630683.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定