Skip to content

Update deploy_kimi_vercel.yml #7

Update deploy_kimi_vercel.yml

Update deploy_kimi_vercel.yml #7

name: Deploy to Vercel
on:
push:
branches:
- main # 或者你想要触发部署的分支
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Login to Vercel
run: |
docker run -t --rm -v $PWD:/app -w /app -e VERCEL_TOKEN=${{ secrets.VERCEL_TOKEN }} vercel/vercel vercel login
- name: Clone repository
run: |
docker run -t --rm -v $PWD:/app -w /app vercel/vercel git clone https://github.com/LLM-Red-Team/kimi-free-api
- name: Change directory
run: |
docker run -t --rm -v $PWD:/app -w /app vercel/vercel cd kimi-free-api
- name: Deploy to Vercel
run: |
docker run -t --rm -v $PWD:/app -w /app vercel/vercel vercel --prod