From b04e1fe628f36820c7b59c966c3b41c7e31bccef Mon Sep 17 00:00:00 2001 From: darken Date: Tue, 28 Apr 2026 11:53:51 +0200 Subject: [PATCH] chore(ci): Also rebuild Pages on main pushes for content edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds push: [main] alongside workflow_dispatch so edits to README.md, _config.yml, _layouts, or the CHANGELOG.md template publish without a manual dispatch. The chain step in release-tag.yml still runs after release publish to guarantee the new release is in site.github.releases by the time Pages rebuilds — concurrency: cancel-in-progress: false serialises the two runs. Adds an if: github.ref == 'refs/heads/main' guard on the deploy job so workflow_dispatch from a non-main branch builds for verification but doesn't deploy. --- .github/workflows/pages.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index ffba23d6..9f53cf75 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,6 +1,8 @@ name: Deploy GitHub Pages on: + push: + branches: [ main ] workflow_dispatch: permissions: @@ -42,6 +44,7 @@ jobs: deploy: name: Deploy to GitHub Pages needs: build + if: github.ref == 'refs/heads/main' runs-on: ubuntu-22.04 permissions: pages: write