Skip to content

Commit 59e4785

Browse files
committed
Updates build workflow to trigger on branch pushes only
1 parent 76cd747 commit 59e4785

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/build-docs.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# - Builds documentation (including running Jupyter notebooks to generate output cells).
66
# - Uploads the built site as a Pages artifact.
77
# Job 2: deploy-dev
8-
# - Deploys the built site to GitHub Pages for development (PRs, pushes to develop/master).
8+
# - Deploys the built site to GitHub Pages for development (pushes to develop/master).
99
# Job 3: deploy-prod
1010
# - Deploys the built site to gh_pages branch for production (release tags starting with v*).
1111
# - This triggers deployment to a custom domain via webhook.
@@ -176,10 +176,8 @@ jobs:
176176

177177
runs-on: ubuntu-latest
178178

179-
# Triggered on pull request, push to develop or master branch only
180-
if: >
181-
github.event_name == 'pull_request' || github.ref == 'refs/heads/develop'
182-
|| github.ref == 'refs/heads/master'
179+
# Triggered on push to develop or master branch only
180+
if: env.CI_BRANCH == 'develop' || env.CI_BRANCH == 'master'
183181

184182
steps:
185183
# Deploy the static files created in the previous job to GitHub Pages

0 commit comments

Comments
 (0)