ci: 部署时自动同步 theme_configurator 插件到运行目录
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2026-03-18 23:04:30 +08:00
parent 82f5082fa5
commit cd8b1d2037

View File

@@ -17,6 +17,9 @@ steps:
# 判断是否已有 .git没有就 clone有就强制同步远程最新代码 # 判断是否已有 .git没有就 clone有就强制同步远程最新代码
- if [ ! -d .git ]; then git clone https://yiqiu:***@gitea.ycyaw.com/yiqiu/BlackFruit-UI.git .; else git fetch --all && git reset --hard origin/main; fi - if [ ! -d .git ]; then git clone https://yiqiu:***@gitea.ycyaw.com/yiqiu/BlackFruit-UI.git .; else git fetch --all && git reset --hard origin/main; fi
# 将主题配置插件同步到运行目录
- cp -rf /www/wwwroot/hgdemo.hgidc.cn/public/web/BlackFruit-web/plugins/addon/theme_configurator /www/wwwroot/hgdemo.hgidc.cn/public/plugins/addon/
- ls -l - ls -l
- name: Restart Nginx - name: Restart Nginx