Skip to content

Commit 48e2a2f

Browse files
authored
Merge pull request #35 from devops-actions/copilot/fix-34
2 parents e7d02b6 + c8cb9a8 commit 48e2a2f

1 file changed

Lines changed: 44 additions & 2 deletions

File tree

.github/workflows/deploy-to-pages.yml

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,53 @@
11
name: Deploy to GitHub Pages
22

33
on:
4-
# Runs on pushes to any branch to validate build
4+
# Runs on pushes to any branch to validate build (only when code changes)
55
push:
6+
paths:
7+
- 'src/**'
8+
- 'index.html'
9+
- 'package.json'
10+
- 'package-lock.json'
11+
- 'vite.config.ts'
12+
- 'vite.config.js'
13+
- 'vite.github-pages.config.ts'
14+
- 'vitest.config.ts'
15+
- 'tsconfig.json'
16+
- 'tailwind.config.js'
17+
- 'components.json'
18+
- 'build-for-gh-pages.sh'
19+
- 'build-for-pages.sh'
20+
- 'deploy-to-pages.sh'
21+
- 'deploy.sh'
22+
- '.github/workflows/**'
23+
paths-ignore:
24+
- '**.md'
25+
- 'LICENSE'
26+
- 'SECURITY.md'
627

7-
# Runs on pull requests to validate build
28+
# Runs on pull requests to validate build (only when code changes)
829
pull_request:
30+
paths:
31+
- 'src/**'
32+
- 'index.html'
33+
- 'package.json'
34+
- 'package-lock.json'
35+
- 'vite.config.ts'
36+
- 'vite.config.js'
37+
- 'vite.github-pages.config.ts'
38+
- 'vitest.config.ts'
39+
- 'tsconfig.json'
40+
- 'tailwind.config.js'
41+
- 'components.json'
42+
- 'build-for-gh-pages.sh'
43+
- 'build-for-pages.sh'
44+
- 'deploy-to-pages.sh'
45+
- 'deploy.sh'
46+
- '.github/workflows/**'
47+
paths-ignore:
48+
- '**.md'
49+
- 'LICENSE'
50+
- 'SECURITY.md'
951

1052
# Allows you to run this workflow manually from the Actions tab
1153
workflow_dispatch:

0 commit comments

Comments
 (0)