Skip to content

Commit 7e3bc09

Browse files
committed
Create selective-deployment.yml
1 parent fe56b49 commit 7e3bc09

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Selective Deployment to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'data/**' # Monitor changes in the 'data' folder at the root
9+
- 'docs/**' # Monitor changes in the 'docs' folder at the root
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Deploy to GitHub Pages
20+
uses: JamesIves/github-pages-deploy-action@v4
21+
with:
22+
branch: main # Deploy to the 'main' branch
23+
folder: .

0 commit comments

Comments
 (0)