chore: Release v1.0.1 #32
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 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 # 构建并启动容器 |