3079d6e
commit 3079d6e
1 file changed
+12 -4
Showing 1 changed file+12-4
▼.github/workflows/deploy-pages.yml
+12-4
| @@ -3,6 +3,11 @@ name: Deploy to GitHub Pages | ||
3 | 3 | on: |
4 | 4 | push: |
5 | 5 | branches: ["main"] |
6 | + paths: | |
7 | + - 'index.html' | |
8 | + - 'logo.svg' | |
9 | + - 'docs/**' | |
10 | + - '.github/workflows/deploy-pages.yml' | |
6 | 11 | workflow_dispatch: |
7 | 12 | |
8 | 13 | permissions: |
| @@ -23,16 +28,19 @@ jobs: | ||
23 | 28 | steps: |
24 | 29 | - name: Checkout |
25 | 30 | uses: actions/checkout@v4 |
26 | - | |
31 | + | |
27 | 32 | - name: Setup Pages |
28 | 33 | uses: actions/configure-pages@v4 |
29 | - | |
34 | + | |
30 | 35 | - name: Upload artifact |
31 | 36 | uses: actions/upload-pages-artifact@v3 |
32 | 37 | with: |
33 | - # Only upload the root files (index.html, logo.svg) | |
38 | + # Upload root files and docs folder | |
34 | 39 | path: '.' |
35 | - pattern: '{index.html,logo.svg}' | |
40 | + pattern: | | |
41 | + index.html | |
42 | + logo.svg | |
43 | + docs/** | |
36 | 44 | |
37 | 45 | - name: Deploy to GitHub Pages |
38 | 46 | id: deployment |
39 | 47 | |