Modify deployment script to include git pull
Update dependencies and restart the NeoBot service after pulling the latest code.
This commit is contained in:
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user