From 783061b5498bac73b0dffaceca71c1b32698de43 Mon Sep 17 00:00:00 2001 From: "@jmmshn" Date: Thu, 16 May 2024 15:52:50 -0700 Subject: [PATCH 1/3] wf --- .github/workflows/pytest-docs.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pytest-docs.yml b/.github/workflows/pytest-docs.yml index 290e0232..605008b1 100644 --- a/.github/workflows/pytest-docs.yml +++ b/.github/workflows/pytest-docs.yml @@ -1,14 +1,9 @@ name: Build Docs on: - push: - branches: - - main - tags: - - "v*" - pull_request: - branches: - - main + release: + types: [published] + workflow_dispatch: jobs: build: From 00c434020aa17f6424ca87721bf7ef19ca34f994 Mon Sep 17 00:00:00 2001 From: "@jmmshn" Date: Thu, 16 May 2024 16:01:11 -0700 Subject: [PATCH 2/3] only update doc off of main --- .github/workflows/pytest-docs.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pytest-docs.yml b/.github/workflows/pytest-docs.yml index 605008b1..97ac970c 100644 --- a/.github/workflows/pytest-docs.yml +++ b/.github/workflows/pytest-docs.yml @@ -1,9 +1,14 @@ name: Build Docs on: - release: - types: [published] - workflow_dispatch: + push: + branches: + - main + tags: + - "v*" + pull_request: + branches: + - main jobs: build: @@ -36,7 +41,7 @@ jobs: cd docs_rst make html - name: Detect changes - if: contains(github.ref, 'refs/heads/main') + if: ${{ !contains(github.ref, 'refs/heads/main') }} id: changes shell: bash run: | From a50bc7f59b34f57b5d9c5f86f58915a616ab5467 Mon Sep 17 00:00:00 2001 From: "@jmmshn" Date: Thu, 16 May 2024 16:08:17 -0700 Subject: [PATCH 3/3] only update doc on release --- .github/workflows/pytest-docs.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/pytest-docs.yml b/.github/workflows/pytest-docs.yml index 97ac970c..b033368b 100644 --- a/.github/workflows/pytest-docs.yml +++ b/.github/workflows/pytest-docs.yml @@ -1,14 +1,7 @@ name: Build Docs on: - push: - branches: - - main - tags: - - "v*" - pull_request: - branches: - - main + [release, workflow_dispatch] jobs: build: