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