Skip to content

Commit

Permalink
build: modify script
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyAisen committed May 23, 2024
1 parent 7ad9729 commit ddd11e0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy-site-to-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ddd11e0

Please sign in to comment.