From fb2f850f1dbe9e32297969e72139534493257279 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 19 Jul 2023 15:44:41 +0300 Subject: [PATCH] Deploy docs only on "develop" and "master" branches --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9a64d882..c17f6b67 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -49,12 +49,12 @@ jobs: name: Deploy Docs needs: build runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master') }} env: DOCS_REPO: platformio/platformio-docs DOCS_DIR: platformio-docs LATEST_DOCS_DIR: latest-docs RELEASE_BUILD: ${{ startsWith(github.ref, 'refs/tags/v') }} - if: ${{ github.event_name == 'push' }} steps: - name: Download artifact uses: actions/download-artifact@v3