Skip to content

每8个小时更新一次Arya #1127

每8个小时更新一次Arya

每8个小时更新一次Arya #1127

Workflow file for this run

name: 每8个小时更新一次Arya
on:
push:
branches:
- master
schedule:
- cron: '21 */8 * * *' # 定时任务
workflow_dispatch: # 手动运行
env: # 设置环境变量
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true # 时区(设置时区可使页面中的`最近更新时间`使用时区时间)
jobs:
build: # 自定义名称
runs-on: ubuntu-latest
steps:
- name: 🚜 设置Node.js环境
uses: actions/setup-node@v3
with:
node-version: 16
- name: 🚜 拉取最新代码
uses: actions/checkout@v3
with:
ref: 'master'
repository: 'fjqz177/markdown-online-editor'
- name: ♻️ 编译静态文件
run: |
yarn
yarn run build
- name: 🚀 部署到GitHub Pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: test # default: gh-pages
publish_dir: ./dist