From 11fa1fe17813d138ba1ef9b95d2a886e9de207ad 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..88190ee6a 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: github.ref == 'refs/tags/v*.*.*' steps: - run: |