在部署脚本中添加 -n 选项以避免 sudo 密码提示
Some checks failed
Build and Deploy Qingshuige / build-deploy (push) Failing after 1s

This commit is contained in:
2026-02-03 03:26:17 +08:00
parent 11f569b81a
commit b35be6b1a3

View File

@@ -31,5 +31,5 @@ jobs:
run: |
cd repo
TARGET_DIR=/www/wwwroot/qingshuige.ink
sudo mkdir -p $TARGET_DIR
sudo rsync -av --delete public/ $TARGET_DIR/
sudo -n mkdir -p $TARGET_DIR
sudo -n rsync -av --delete public/ $TARGET_DIR/