This commit is contained in:
2026-08-08 17:06:52 +08:00
parent 5897e45782
commit 9c2c626c12
+5 -1
View File
@@ -20,9 +20,13 @@ jobs:
run: | run: |
ssh -i ~/.ssh/deploy_key ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << EOF ssh -i ~/.ssh/deploy_key ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << EOF
cd ${{ secrets.DEPLOY_PATH }} cd ${{ secrets.DEPLOY_PATH }}
git config --global --add safe.directory ${{ secrets.DEPLOY_PATH }}
git pull origin main git pull origin main
source venv/bin/activate source venv/bin/activate
pip install -r requirements.txt pip install -r requirements.txt
chown -R www:www . chown -R www:www .
kill -HUP $(pgrep -f "Hulumath-Web-Demo/gunicorn_conf.py" | head -1) PID=\$(pgrep -f "Hulumath-Web-Demo/gunicorn_conf.py" | head -1)
if [ -n "\$PID" ]; then
kill -HUP \$PID
fi
EOF EOF