File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Deploy to GitHub Pages
22
33on :
4- # Runs on pushes to main branch for deployment (only when code changes)
4+ # Runs on pushes to any branch to validate build (only when code changes)
55 push :
6- branches : [ main ]
6+ paths-ignore :
7+ - ' **.md'
8+ - ' LICENSE'
9+ - ' SECURITY.md'
10+
11+ # Runs on pull requests to validate build (only when code changes)
12+ pull_request :
713 paths-ignore :
814 - ' **.md'
915 - ' LICENSE'
@@ -18,9 +24,9 @@ permissions:
1824 pages : write
1925 id-token : write
2026
21- # Allow only one concurrent deployment
27+ # Allow only one concurrent deployment per branch
2228concurrency :
23- group : " pages-deployment "
29+ group : " pages-${{ github.head_ref || github.ref }} "
2430 cancel-in-progress : true
2531
2632jobs :
5157 with :
5258 path : ' ./dist'
5359
54- # Deployment job - only runs on main branch
60+ # Deployment job
5561 deploy :
62+ # Only deploy on main branch
63+ # if: github.ref == 'refs/heads/main'
5664 environment :
5765 name : github-pages
5866 url : ${{ steps.deployment.outputs.page_url }}
You can’t perform that action at this time.
0 commit comments