Skip to content

chore: Release v1.0.1 #32

chore: Release v1.0.1

chore: Release v1.0.1 #32

Workflow file for this run

name: Deploy to Remote Server
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to Remote Server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
set -e # 如果任何命令失败,立即退出
cd ~/lightChat/web # 进入项目目录
git clone git@github.com:ZRMYDYCG/llm-go-chat-client.git # 克隆项目到服务器
git pull # 拉取最新代码
sudo docker compose down --rmi all # 停止并删除所有容器
sudo docker compose up -d # 构建并启动容器