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