mirror of
https://github.com/thedotmack/claude-mem
synced 2026-04-25 17:15:04 +02:00
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 <noreply@anthropic.com>
This commit is contained in:
28
.github/workflows/deploy-install-scripts.yml
vendored
Normal file
28
.github/workflows/deploy-install-scripts.yml
vendored
Normal file
@@ -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
|
||||||
2
install/.gitignore
vendored
Normal file
2
install/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.vercel
|
||||||
|
public/openclaw.sh
|
||||||
12
install/vercel.json
Normal file
12
install/vercel.json
Normal file
@@ -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" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user