Skip to content

Commit

Permalink
Use different env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mad-Kat committed Sep 24, 2024
1 parent 468535c commit e982cfb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build and Deploy packages/docs
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DOCS_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}

on:
Expand Down Expand Up @@ -54,18 +54,18 @@ jobs:
- name: Install Vercel CLI
run: npm install -g vercel@35
- name: Link Vercel project
run: vercel link --cwd packages/docs --yes --token ${{ secrets.VERCEL_TOKEN }}
run: vercel link --yes --token ${{ secrets.VERCEL_TOKEN }}

# Preview deployment (for pull requests and non-main pushes)
- name: Pull Vercel environment information (Preview)
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main')
run: vercel pull --cwd packages/docs --yes --environment=preview --token ${{ secrets.VERCEL_TOKEN }}
run: vercel pull --yes --environment=preview --token ${{ secrets.VERCEL_TOKEN }}
- name: Build project artifacts (Preview)
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main')
run: vercel build --cwd packages/docs --token ${{ secrets.VERCEL_TOKEN }}
run: vercel build --token ${{ secrets.VERCEL_TOKEN }}
- name: Deploy to Vercel (Preview)
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main')
run: vercel deploy --cwd packages/docs --prebuilt --token ${{ secrets.VERCEL_TOKEN }}
run: vercel deploy --prebuilt --token ${{ secrets.VERCEL_TOKEN }}

# Production deployment (for main branch pushes)
- name: Pull Vercel environment information (Production)
Expand Down

0 comments on commit e982cfb

Please sign in to comment.