调整流水线

This commit is contained in:
2026-04-16 15:06:49 +08:00
parent a6bbd89350
commit 892cf837a6

View File

@@ -100,7 +100,11 @@ jobs:
DEST="${{ inputs.deploy_path }}" DEST="${{ inputs.deploy_path }}"
DEST="${DEST%/}" DEST="${DEST%/}"
mkdir -p "$DEST" mkdir -p "$DEST"
find "$DEST" -mindepth 1 -maxdepth 1 -exec rm -rf {} + # 宝塔面板会自动生成 .user.ini(并加 immutable 属性)和 .htaccess,跳过它们
find "$DEST" -mindepth 1 -maxdepth 1 \
! -name ".user.ini" \
! -name ".htaccess" \
-exec rm -rf {} +
cp -a dist/. "$DEST/" cp -a dist/. "$DEST/"
- name: Set ownership for Nginx (Baota www) - name: Set ownership for Nginx (Baota www)