From ddd11e06a09b5625c7418d2d881d0f3d70c78706 Mon Sep 17 00:00:00 2001 From: Aisen60 Date: Thu, 23 May 2024 14:08:53 +0800 Subject: [PATCH] build: modify script --- .github/workflows/deploy-site-to-server.yml | 9 +++++++++ .github/workflows/deploy-site.yml | 11 +++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-site-to-server.yml b/.github/workflows/deploy-site-to-server.yml index dff5445e..714cf196 100644 --- a/.github/workflows/deploy-site-to-server.yml +++ b/.github/workflows/deploy-site-to-server.yml @@ -4,6 +4,15 @@ on: workflow_dispatch: push: branches: [main] + paths-ignore: + - "**.md" + - ".vscode/**" + - ".env*" + - ".eslint*" + - "tsconfig*" + schedule: + # 北京时间凌晨5点 + - cron: "0 21 * * *" jobs: main-branch-deploy: diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index 1844f32d..9d483f68 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -4,17 +4,20 @@ on: workflow_dispatch: push: branches: [main] + paths-ignore: + - "**.md" + - ".vscode/**" + - ".env*" + - ".eslint*" + - "tsconfig*" schedule: # 北京时间凌晨5点 - - cron: "0 5 * * *" + - cron: "0 21 * * *" jobs: build-and-deploy: if: github.repository == 'Aisen60/vant-theme' runs-on: ubuntu-latest - env: - # 设置时区环境变量 - TZ: Asia/Shanghai concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: