Skip to content

Commit

Permalink
fix(ci): Update API ref deployment action & vercelignore (langchain-a…
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul authored Sep 17, 2024
1 parent e4489d1 commit ab2ba50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/deploy-api-refs-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy API Refs Prod
on:
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
push:
branches: ["main"]
branches: ["main", "v0.2"]

# If another push to the same PR or branch happens while this workflow is still running,
# cancel the earlier run in favor of the next run.
Expand Down Expand Up @@ -36,9 +36,4 @@ jobs:
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy to Vercel
run: |
if [ ${{ github.ref }} = 'refs/heads/main' ]; then
vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }}
else
vercel deploy --token=${{ secrets.VERCEL_TOKEN }}
fi
run: vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
4 changes: 3 additions & 1 deletion .vercelignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules/
**/node_modules/
**/node_modules/
.next/
**/.next/

0 comments on commit ab2ba50

Please sign in to comment.