File tree Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 11name : Branch Protection Rules
22
33on :
4- # Disabled automatic triggers to prevent API permission issues
5- # when pushing directly to main branch
6- # push:
7- # branches:
8- # - main
9- workflow_dispatch : # Allow manual triggering only
4+ # Automatic trigger to apply branch protection rules when pushing to main
5+ push :
6+ branches :
7+ - main
8+ workflow_dispatch : # Also allow manual triggering
109
1110jobs :
1211 setup-branch-protection :
Original file line number Diff line number Diff line change 11name : Deploy GitHub Pages
22
33on :
4- # Disable this workflow until Pages is properly configured
5- # push:
6- # branches:
7- # - main
8- # - master
9- # paths:
10- # - 'docs/**'
11- workflow_dispatch : # Allow manual triggering only
4+ # Runs on pushes targeting the default branch
5+ push :
6+ branches :
7+ - main
8+ - master
9+ paths :
10+ - ' docs/**'
11+ workflow_dispatch : # Allow manual triggering
1212
1313permissions :
1414 contents : read
2828
2929 - name : Setup Pages
3030 uses : actions/configure-pages@v4
31+ with :
32+ enablement : true
3133
3234 - name : Build with Jekyll
3335 uses : actions/jekyll-build-pages@v1
You can’t perform that action at this time.
0 commit comments