diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 7d8fb8f..ba07325 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -1,7 +1,9 @@ -name: Build sphinx page +name: Sphinx Template Build and Deploy on: + push: + branches: [ main ] pull_request: branches: [ main ] workflow_dispatch: @@ -32,7 +34,7 @@ jobs: deploy: needs: build - if: 1 # GitHub pages must be enabled + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' permissions: pages: write id-token: write