Run CI for feature branches
This commit is contained in:
parent
6613da3b6e
commit
5de4591f64
1 changed files with 1 additions and 3 deletions
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue