Skip to content

Commit 602fd71

Browse files
📝 更新GitHub工作流,优化rsync命令以排除特定文件
- 在rsync命令中添加了`--exclude='.user.ini'`选项,以避免同步不必要的文件,提升了部署效率和安全性。 - 保持其他步骤不变,确保工作流的稳定性。
1 parent 82c189f commit 602fd71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/updata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ jobs:
2727
run: |
2828
mkdir -p ~/.ssh
2929
ssh-keyscan -H ${{ secrets.IPv4 }} >> ~/.ssh/known_hosts
30-
rsync -avz --delete ./build/ ${{ secrets.IP }}
30+
rsync -avz --exclude='.user.ini' ./build/ ${{ secrets.IP }}
3131
continue-on-error: true

0 commit comments

Comments
 (0)