From b0e0bd23c959af977b86d6fd1597b75f944a1160 Mon Sep 17 00:00:00 2001 From: Alex Newman Date: Fri, 13 Feb 2026 01:39:43 -0500 Subject: [PATCH] Add Vercel deploy workflow for install scripts Serves openclaw/install.sh at install.cmem.ai/openclaw.sh via Vercel. Auto-deploys on changes to openclaw/install.sh on main. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/deploy-install-scripts.yml | 28 ++++++++++++++++++++ install/.gitignore | 2 ++ install/vercel.json | 12 +++++++++ 3 files changed, 42 insertions(+) create mode 100644 .github/workflows/deploy-install-scripts.yml create mode 100644 install/.gitignore create mode 100644 install/vercel.json diff --git a/.github/workflows/deploy-install-scripts.yml b/.github/workflows/deploy-install-scripts.yml new file mode 100644 index 00000000..196d1fc4 --- /dev/null +++ b/.github/workflows/deploy-install-scripts.yml @@ -0,0 +1,28 @@ +name: Deploy Install Scripts + +on: + push: + branches: [main] + paths: + - 'openclaw/install.sh' + - 'install/**' + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Copy install scripts to deploy directory + run: | + cp openclaw/install.sh install/public/openclaw.sh + + - name: Deploy to Vercel + uses: amondnet/vercel-action@v25 + with: + vercel-token: ${{ secrets.VERCEL_TOKEN }} + vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} + vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} + vercel-args: '--prod' + working-directory: ./install diff --git a/install/.gitignore b/install/.gitignore new file mode 100644 index 00000000..e940dd69 --- /dev/null +++ b/install/.gitignore @@ -0,0 +1,2 @@ +.vercel +public/openclaw.sh diff --git a/install/vercel.json b/install/vercel.json new file mode 100644 index 00000000..d9504cd5 --- /dev/null +++ b/install/vercel.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "headers": [ + { + "source": "/(.*)\\.sh", + "headers": [ + { "key": "Content-Type", "value": "text/plain; charset=utf-8" }, + { "key": "Cache-Control", "value": "public, max-age=300, s-maxage=60" } + ] + } + ] +}