改进 CI/CD 部署逻辑

- 部署前备份 config.php 和用户数据目录
- 使用 git clean 清理旧文件
- 部署后恢复配置和用户数据
- 防止残留文件和配置被覆盖
- 修复 .gitignore 忽略 .gitea 的问题
This commit is contained in:
2026-02-15 14:04:39 +08:00
parent a0cca46f87
commit b4081f82cc
2 changed files with 245 additions and 0 deletions
+1
View File
@@ -28,3 +28,4 @@ config.php
!/deploy/
!/tests/
!/src/
!/.gitea/