Skip to content

Commit 9c5a4f5

Browse files
authoredSep 16, 2024··
fix(ci): Conditionally deplpy api refs to prod (#6819)
1 parent 68e53a5 commit 9c5a4f5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

‎.github/workflows/deploy-api-refs-prod.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,10 @@ jobs:
3535
run: yarn turbo:command build --filter=!examples --filter=!api_refs --filter=!core_docs --filter=!create-langchain-integration
3636
- name: Build Project Artifacts
3737
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
38-
- name: Deploy Project Artifacts to Vercel
39-
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
38+
- name: Deploy to Vercel
39+
run: |
40+
if [ ${{ github.ref }} = 'refs/heads/main' ]; then
41+
vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }}
42+
else
43+
vercel deploy --token=${{ secrets.VERCEL_TOKEN }}
44+
fi

0 commit comments

Comments
 (0)
Please sign in to comment.