From 79d65fc63b9b9b30b21c32300d3a7eccd4847b54 Mon Sep 17 00:00:00 2001 From: Neil Shephard Date: Mon, 13 May 2024 12:21:14 +0100 Subject: [PATCH] ci(gh-pages): Build docs on PRs to main branch only Closes #838 --- .github/workflows/sphinx_docs_to_gh_pages.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sphinx_docs_to_gh_pages.yaml b/.github/workflows/sphinx_docs_to_gh_pages.yaml index e960c9aac3..5b23de5cb2 100644 --- a/.github/workflows/sphinx_docs_to_gh_pages.yaml +++ b/.github/workflows/sphinx_docs_to_gh_pages.yaml @@ -2,7 +2,9 @@ name: Sphinx docs to gh-pages on: - push: + pull_requests: + branches: + - main # Uncomment if only tagged releases are to have documentation built # tags: # - v*