Skip to content

Commit 8f1d499

Browse files
author
shijiashuai
committed
chore: optimize GitHub Pages deployment workflow
1 parent f038c4c commit 8f1d499

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
permissions:
99
contents: read
1010

11+
concurrency:
12+
group: ci-${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
lint:
1317
name: Lint

.github/workflows/pages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches: [main]
6+
paths:
7+
- '*.md'
8+
- 'docs/**'
9+
- '_config.yml'
10+
- '.github/workflows/pages.yml'
611
workflow_dispatch:
712

813
permissions:

0 commit comments

Comments
 (0)