Skip to content

Commit 0e248a7

Browse files
authored
Add vercel deploy workflows (#4302)
1 parent 935a7c9 commit 0e248a7

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy roocode.com
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
8+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
- name: Setup Node.js and pnpm
17+
uses: ./.github/actions/setup-node-pnpm
18+
- name: Install Vercel CLI
19+
run: npm install --global vercel@canary
20+
- name: Pull Vercel Environment Information
21+
run: npx vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
22+
- name: Build Project Artifacts
23+
run: npx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
24+
- name: Deploy Project Artifacts to Vercel
25+
run: npx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Preview roocode.com
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
8+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
9+
10+
jobs:
11+
preview:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
- name: Setup Node.js and pnpm
17+
uses: ./.github/actions/setup-node-pnpm
18+
- name: Install Vercel CLI
19+
run: npm install --global vercel@canary
20+
- name: Pull Vercel Environment Information
21+
run: npx vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
22+
- name: Build Project Artifacts
23+
run: npx vercel build --token=${{ secrets.VERCEL_TOKEN }}
24+
- name: Deploy Project Artifacts to Vercel
25+
run: npx vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ logs
4242
# IntelliJ and Qodo plugin folders
4343
.idea/
4444
.qodo/
45+
.vercel

0 commit comments

Comments
 (0)