From f87a700f177eb45494d587c8ec0cbf25d96fee72 Mon Sep 17 00:00:00 2001 From: Michael-J-Ward Date: Fri, 31 May 2024 08:52:51 -0500 Subject: [PATCH] ci: update docs job condition --- .github/workflows/docs.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 70d5dcbf2..db23462a6 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Set target branch - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag') id: target-branch run: | set -x @@ -40,7 +40,7 @@ jobs: - name: Checkout docs sources uses: actions/checkout@v3 - name: Checkout docs target branch - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag') uses: actions/checkout@v3 with: fetch-depth: 0 @@ -78,7 +78,7 @@ jobs: make html - name: Copy & push the generated HTML - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag') run: | set -x cd docs-target