Modify deployment script to include git pull

Update dependencies and restart the NeoBot service after pulling the latest code.
This commit is contained in:
镀铬酸钾
2026-03-11 18:28:48 +08:00
committed by GitHub
parent ae5fe32ba7
commit 7226c3a28d

View File

@@ -35,6 +35,7 @@ jobs:
set -e set -e
# 适配NeoBot项目更新依赖+重启systemd服务 # 适配NeoBot项目更新依赖+重启systemd服务
cd /home/k/NeoBot cd /home/k/NeoBot
git pull
pip install -r requirements.txt --upgrade --timeout 300 --only-binary=:all: pip install -r requirements.txt --upgrade --timeout 300 --only-binary=:all:
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl restart neobot sudo systemctl restart neobot