diff --git a/.github/workflows/build-docs-revamp.yml b/.github/workflows/build-docs-revamp.yml index 1245b9f5e5900..02d1ec1ee28ea 100644 --- a/.github/workflows/build-docs-revamp.yml +++ b/.github/workflows/build-docs-revamp.yml @@ -94,7 +94,10 @@ jobs: - name: Publish to Vercel Production uses: amondnet/vercel-action@v25 - if: github.event_name == 'push' && github.ref == 'refs/heads/master' + if: | + github.event_name == 'pull_request' || + (github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-') || startsWith(github.ref, 'refs/heads/docs-prod'))) + with: vercel-token: ${{ secrets.VERCEL_TOKEN }} vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}