From d301418de182e3cb9cc1152a47b59f11736a2d2d Mon Sep 17 00:00:00 2001 From: IonutMuthi Date: Tue, 21 Jan 2025 01:57:42 -0500 Subject: [PATCH] doc: build doc on push for main branch and tags matching v*.*.* and deploy doc for tags mathcing v*.*.* Signed-off-by: IonutMuthi --- .github/workflows/generate_doc.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate_doc.yml b/.github/workflows/generate_doc.yml index 83752674b..13df06ce6 100644 --- a/.github/workflows/generate_doc.yml +++ b/.github/workflows/generate_doc.yml @@ -4,6 +4,8 @@ on: push: branches: - main + tags: + - v*.*.* pull_request: jobs: @@ -36,7 +38,7 @@ jobs: deploy-doc: runs-on: ubuntu-latest needs: build-doc - if: github.ref == 'refs/heads/main' + if: startsWith(github.ref, 'refs/tags/') steps: - run: |