From 5de4591f64e24b1300f7744b95146f7f3cc5cdcf Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 20 Aug 2026 11:03:54 +0100 Subject: [PATCH] Run CI for feature branches --- .forgejo/workflows/book.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.forgejo/workflows/book.yml b/.forgejo/workflows/book.yml index e4f73fe..730503e 100644 --- a/.forgejo/workflows/book.yml +++ b/.forgejo/workflows/book.yml @@ -2,8 +2,6 @@ name: Build and deploy the book on: push: - branches: - - main pull_request: workflow_dispatch: @@ -25,7 +23,7 @@ jobs: test -f _book/index.html - name: Deploy successful main build - if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} + if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' }} env: DEPLOY_KEY: ${{ secrets.EACOMPANION_DEPLOY_KEY }} run: |