Skip to content

Commit 664346e

Browse files
authored
Automatically deploy to Vercel (#4307)
1 parent 9183f7b commit 664346e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/website-deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Deploy roocode.com
22

33
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'apps/web-roo-code/**'
49
workflow_dispatch:
510

611
env:
@@ -10,6 +15,7 @@ env:
1015
jobs:
1116
deploy:
1217
runs-on: ubuntu-latest
18+
if: ${{ secrets.VERCEL_TOKEN != '' }}
1319
steps:
1420
- name: Checkout code
1521
uses: actions/checkout@v4

.github/workflows/website-preview.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Preview roocode.com
22

33
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
paths:
8+
- 'apps/web-roo-code/**'
49
workflow_dispatch:
510

611
env:
@@ -10,6 +15,7 @@ env:
1015
jobs:
1116
preview:
1217
runs-on: ubuntu-latest
18+
if: ${{ secrets.VERCEL_TOKEN != '' }}
1319
steps:
1420
- name: Checkout code
1521
uses: actions/checkout@v4

0 commit comments

Comments
 (0)