From ccbf6abe91c310f8bc47996b6feb6e8931c52ace Mon Sep 17 00:00:00 2001 From: Pedram Navid <1045990+PedramNavid@users.noreply.github.com> Date: Tue, 10 Sep 2024 09:38:38 -0700 Subject: [PATCH] [docs-beta] push to prod on PRs (#24357) ## Summary & Motivation ## How I Tested These Changes ## Changelog Insert changelog entry or "NOCHANGELOG" here. NOCHANGELOG --- .github/workflows/build-docs-revamp.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }}