feat: 🚀 sidebar 新增 restart 配置项,优化文档 #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ## 利用 GitHub Actions 每天定时给百度推送链接,提高收录率 ## | |
# name: baiduPush | |
# # 两种触发方式:一、push代码,二、每天国际标准时间 23 点(北京时间 +8 即早上 7 点)运行 | |
# on: | |
# push: | |
# schedule: | |
# - cron: "0 23 * * *" # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#scheduled-events-schedule | |
# jobs: | |
# bot: | |
# runs-on: ubuntu-latest # 运行环境为最新版的Ubuntu | |
# steps: | |
# - name: "Checkout codes" # 步骤一,获取仓库代码 | |
# uses: actions/checkout@v1 | |
# - name: "Run baiduPush" # 步骤二,执行 sh 命令文件 | |
# run: pnpm install && pnpm run docs:baiduPush # 运行目录是仓库根目录,run 的是 package.json 的集成命令 |