Skip to content

Commit bf8320e

Browse files
fix: fix workflow pages and branch protection (#3)
1 parent 215cce0 commit bf8320e

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

.github/branch-protection.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: Branch Protection Rules
22

33
on:
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

1110
jobs:
1211
setup-branch-protection:

.github/workflows/pages.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: Deploy GitHub Pages
22

33
on:
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

1313
permissions:
1414
contents: read
@@ -28,6 +28,8 @@ jobs:
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

0 commit comments

Comments
 (0)