From 8ef3fd54d44b89e507d3aee5a5d7c6e7822c2685 Mon Sep 17 00:00:00 2001 From: TomuHirata Date: Wed, 22 Oct 2025 15:48:27 +0900 Subject: [PATCH] chore(docs): gate publish on release --- .github/workflows/docs-push.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs-push.yml b/.github/workflows/docs-push.yml index 85eb4c4be2..efab685878 100644 --- a/.github/workflows/docs-push.yml +++ b/.github/workflows/docs-push.yml @@ -2,10 +2,12 @@ name: Update DSPy Docs on: push: - branches: - - main - paths: - - "docs/**" + tags: + - "*" + release: + types: + - published + workflow_dispatch: pull_request: paths: - "docs/**" @@ -28,7 +30,7 @@ jobs: mkdocs build update-docs-subtree: - if: github.event_name == 'push' && github.repository == 'stanfordnlp/dspy' + if: github.event_name != 'pull_request' && github.repository == 'stanfordnlp/dspy' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3