diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index 66abb013d..9869c3e17 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -85,7 +85,7 @@ jobs: permissions: contents: write - if: (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'new/doc-generation' )) || (github.event_name == 'release') + if: (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'new/doc-generation' )) || (github.ref_type == 'tag') steps: - name: Checkout the documentation branch continue-on-error: true @@ -131,7 +131,7 @@ jobs: runs-on: ubuntu-latest needs: - build - if: github.event_name == 'release' + if: github.ref_type == 'tag' steps: - name: Download the artifact from the previous job uses: actions/download-artifact@v4