Update deploy_kimi_vercel.yml #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |