From aea442991fa74ca221ce8df54dda72c27655e610 Mon Sep 17 00:00:00 2001 From: cte Date: Tue, 3 Jun 2025 16:21:00 -0700 Subject: [PATCH] Automatically deploy to Vercel --- .github/workflows/website-deploy.yml | 6 ++++++ .github/workflows/website-preview.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/website-deploy.yml b/.github/workflows/website-deploy.yml index 5e8423fee22..e2fb19c0715 100644 --- a/.github/workflows/website-deploy.yml +++ b/.github/workflows/website-deploy.yml @@ -1,6 +1,11 @@ name: Deploy roocode.com on: + push: + branches: + - main + paths: + - 'apps/web-roo-code/**' workflow_dispatch: env: @@ -10,6 +15,7 @@ env: jobs: deploy: runs-on: ubuntu-latest + if: ${{ secrets.VERCEL_TOKEN != '' }} steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/website-preview.yml b/.github/workflows/website-preview.yml index cb13eaec15b..1692b8737b8 100644 --- a/.github/workflows/website-preview.yml +++ b/.github/workflows/website-preview.yml @@ -1,6 +1,11 @@ name: Preview roocode.com on: + push: + branches-ignore: + - main + paths: + - 'apps/web-roo-code/**' workflow_dispatch: env: @@ -10,6 +15,7 @@ env: jobs: preview: runs-on: ubuntu-latest + if: ${{ secrets.VERCEL_TOKEN != '' }} steps: - name: Checkout code uses: actions/checkout@v4