利用Github Action定时推送sitemap至搜索引擎

Ghlerrix2023/08/13blogblog

目前支持baidubing

可通过以下地址获取代码:

GitHub - Ghlerrix/NotionNext at baidupushopen in new window

具体代码文件地址为:

.github/workflows/pushUrl.ymlopen in new window

pushUrl.pyopen in new window

使用方法

  • 将上述两个文件添加至自己仓库的主分支(必须主分支,否则定时任务不能执行)

  • 添加相关的Action Secrets

    • BAIDU_TOKEN 百度token
    • BING_API_KEY bing的apikey
    • URL 你自己网站的地址,注意是否带有www前缀 url需要带有https://前缀
      • 另外需要注意的是url只需要写自己域名即可,像这样https://ghlcode.cn

    https://s2.loli.net/2023/08/17/Odg7vKDhu5RtIpU.png

最后更新时间 11/21/2024, 2:02:30 PM