Lete114 / Hexo-SEO-AutoPush

Daily automatic submission of urls to baidu and Google bing | 每天自动提交url到百度和谷歌必应
https://blog.imlete.cn/article/hexo-seo-autopush.html
81 stars 14 forks source link

路径错误 #15

Open MyPrototypeWhat opened 1 week ago

MyPrototypeWhat commented 1 week ago
(node:1943) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
node:events:498
      throw er; // Unhandled 'error' event
      ^
Error: ENOENT: no such file or directory, open '/home/runner/work/myprototypewhat.github.io/myprototypewhat.github.io/google.txt'
Emitted 'error' event on Interface instance at:
    at ReadStream.onerror (node:internal/readline/interface:239:10)
    at ReadStream.emit (node:events:[5](https://github.com/MyPrototypeWhat/myprototypewhat.github.io/actions/runs/9515804461/job/26230794913#step:5:6)20:28)
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:[8](https://github.com/MyPrototypeWhat/myprototypewhat.github.io/actions/runs/9515804461/job/26230794913#step:5:9)2:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/runner/work/myprototypewhat.github.io/myprototypewhat.github.io/google.txt'
}
Node.js v22.3.0

/home/runner/work/myprototypewhat.github.io/myprototypewhat.github.io/google.txt

不知道为什么多了个/myprototypewhat.github.io

Lete114 commented 1 week ago

你的没有生成google.txt文件

MyPrototypeWhat commented 1 week ago

你的没有生成google.txt文件

image

我看是有的

Lete114 commented 1 week ago

你仓库里有吗?

MyPrototypeWhat commented 1 week ago

我是用hexo g生成的HexoSeoAutoPush.yml 拖到了我项目的workflows里

MyPrototypeWhat commented 1 week ago

你仓库里有吗?

没有用hexo 的deploy那种 仓库里没有

Lete114 commented 1 week ago

google.txt呢?

MyPrototypeWhat commented 1 week ago

https://hexo.io/zh-cn/docs/github-pages 这么部署的 对github workflow不熟 我也不知道构建出来的产物放在哪

Lete114 commented 1 week ago

我是用hexo g生成的HexoSeoAutoPush.yml 拖到了我项目的workflows里

你因该这样

.
│  baidu.txt
│  baidusitemap.xml
│  bing.json
│
└─.github
    └─workflows
            HexoSeoAutoPush.yml
MyPrototypeWhat commented 1 week ago

解决了

image

定一下构建产物的文件夹就行