Deploy docs only on "develop" and "master" branches

This commit is contained in:
Ivan Kravets
2023-07-19 15:44:41 +03:00
parent 45da8da093
commit fb2f850f1d

View File

@@ -49,12 +49,12 @@ jobs:
name: Deploy Docs name: Deploy Docs
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master') }}
env: env:
DOCS_REPO: platformio/platformio-docs DOCS_REPO: platformio/platformio-docs
DOCS_DIR: platformio-docs DOCS_DIR: platformio-docs
LATEST_DOCS_DIR: latest-docs LATEST_DOCS_DIR: latest-docs
RELEASE_BUILD: ${{ startsWith(github.ref, 'refs/tags/v') }} RELEASE_BUILD: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.event_name == 'push' }}
steps: steps:
- name: Download artifact - name: Download artifact
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3