简体   繁体   English

Github 动作部署突然挂了

[英]Github actions deployment suddenly hanging

I have a personal website which uses github pages to host and deploy, https://github.com/tonydavis629/personal-site .我有一个个人网站,它使用 github 个页面来托管和部署, https://github.com/tonydavis629/personal-site It was working fine until yesterday when it suddenly started hanging on the Build and Deploy stage of my deployment.直到昨天突然开始挂在我部署的构建和部署阶段时,它一直运行良好。 It will hang for hours until it says it is cancelled.它会挂几个小时,直到它说它被取消。 Here is the output of the failed stage on the Actions tab on github这是 github 上“操作”选项卡上失败阶段的 output


2h 22m 54s
Run git config user.name "Automated"

> personal-site@4.0.0 predeploy
> npm run build && react-snap


> personal-site@4.0.0 build
> rimraf ./build && react-scripts build

Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
Compiled successfully.

File sizes after gzip:

  82.16 kB  build/static/js/main.7749ae65.js
  23.56 kB  build/static/js/872.f763e0ca.chunk.js
  7.79 kB   build/static/css/main.d4403bfe.css
  6.76 kB   build/static/js/166.f005bd44.chunk.js
  5.57 kB   build/static/js/964.46c409e0.chunk.js
  4.37 kB   build/static/js/209.d464d894.chunk.js
  4.23 kB   build/static/js/161.6a13cc1c.chunk.js
  3.12 kB   build/static/js/596.ad0d1198.chunk.js
  1.09 kB   build/static/js/453.436ed330.chunk.js
  765 B     build/static/js/478.1cd2f26a.chunk.js
  493 B     build/static/js/562.4dc7da4b.chunk.js
  400 B     build/static/js/922.fefd4601.chunk.js

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

  npm install -g serve
  serve -s build

Find out more about deployment here:

  https://cra.link/deployment

Error: The operation was canceled.

I notice that something changed in the Deployments / History page where suddenly it was being deployed by Github Actions 'on behalf' of me, instead of by me.我注意到部署/历史页面中发生了一些变化,突然它被 Github 操作“代表”我部署,而不是由我部署。 Here is a picture of what I mean.这是我的意思的图片。

部署历史

Since the last successful deployment the only thing I changed was adding some text, it seems clear that whatever is messed up is within gh-pages and not a build failure or anything like that.自从上次成功部署以来,我唯一改变的就是添加了一些文本,很明显,无论是在 gh-pages 中出现什么问题,而不是构建失败或类似的事情。 I'm not sure what to do, can anyone help?我不知道该怎么办,有人可以帮忙吗? Thanks.谢谢。

My issue was that github's latest ubuntu was updated to 22.04.我的问题是github最新的ubuntu更新到22.04了。 I reset it manually to ubuntu-20.04 in my github-pages.yml workflow and it fixed the problem.我在我的 github-pages.yml 工作流程中手动将其重置为 ubuntu-20.04,它解决了问题。 I'm sure there is a better solution but this is working for me now.我确定有更好的解决方案,但这现在对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM