From 7d635c5d3842f1fb27f540181a2096f666311652 Mon Sep 17 00:00:00 2001 From: Davit Napitupulu Date: Sat, 30 Aug 2025 18:30:44 +0700 Subject: [PATCH] fix: fix workflow pages and branch protection --- .github/branch-protection.yml | 11 +++++------ .github/workflows/pages.yml | 18 ++++++++++-------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/branch-protection.yml b/.github/branch-protection.yml index 3ef0e6a..61abf42 100644 --- a/.github/branch-protection.yml +++ b/.github/branch-protection.yml @@ -1,12 +1,11 @@ name: Branch Protection Rules on: - # Disabled automatic triggers to prevent API permission issues - # when pushing directly to main branch - # push: - # branches: - # - main - workflow_dispatch: # Allow manual triggering only + # Automatic trigger to apply branch protection rules when pushing to main + push: + branches: + - main + workflow_dispatch: # Also allow manual triggering jobs: setup-branch-protection: diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index ba67a91..73c43fa 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,14 +1,14 @@ name: Deploy GitHub Pages on: - # Disable this workflow until Pages is properly configured - # push: - # branches: - # - main - # - master - # paths: - # - 'docs/**' - workflow_dispatch: # Allow manual triggering only + # Runs on pushes targeting the default branch + push: + branches: + - main + - master + paths: + - 'docs/**' + workflow_dispatch: # Allow manual triggering permissions: contents: read @@ -28,6 +28,8 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v4 + with: + enablement: true - name: Build with Jekyll uses: actions/jekyll-build-pages@v1