From 8d6137ce673706b1058aa5d44faaba8b96b8ebbc Mon Sep 17 00:00:00 2001 From: syui Date: Fri, 18 Jul 2025 16:05:46 +0900 Subject: [PATCH] Add pull request merge support to GitHub Actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add pull_request trigger with closed type - Add condition to run only when PR is merged or on push to main - Enable deployment on both direct push and PR merge to main 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/gh-pages.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5de95f4..7f33723 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -4,10 +4,15 @@ on: push: branches: - main + pull_request: + branches: + - main + types: [closed] jobs: build-deploy: runs-on: ubuntu-latest + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) steps: - uses: actions/checkout@v4 with: