Skip to content

Commit 42b22b6

Browse files
author
shijiashuai
committed
chore: optimize GitHub Pages deployment workflow
1 parent d74769e commit 42b22b6

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
pull_request:
77
branches: [main, master]
88

9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ci-${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
916
jobs:
1017
lint-python:
1118
name: Python 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)