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