javascript Github操作部署突然挂起

w7t8yxp5  于 2022-12-28  发布在  Java
关注(0)|答案(1)|浏览(297)

我有一个使用github页面来托管和部署的个人网站https://github.com/tonydavis629/personal-site。它一直运行良好,直到昨天它突然在我的部署的构建和部署阶段挂起。它会挂起几个小时,直到它说它被取消。下面是github上的Actions选项卡上失败阶段的输出

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.

我注意到部署/历史页面中的一些东西发生了变化,突然间它被Github Actions“代表”我部署,而不是由我部署。

自从上一次成功部署以来,我唯一做的改变就是添加了一些文本,很明显,无论什么是混乱的是在gh-pages,而不是一个构建失败或类似的东西。我不知道该怎么做,有人能帮忙吗?谢谢。

ql3eal8s

ql3eal8s1#

我的问题是github最新的ubuntu更新到了22.04,我在github-pages.yml工作流中手动将其重置为ubuntu-20.04,它修复了这个问题。我确信有更好的解决方案,但现在这个方法对我很有效。

相关问题