ci: deploy 用 cp 替代 rsync;同步 contrib 模板;更新产品说明

This commit is contained in:
2026-04-10 13:39:54 +08:00
parent c67487ba16
commit 4856167682

View File

@@ -59,14 +59,15 @@ jobs:
- name: Build
run: ${{ inputs.build_command }}
- name: Deploy (rsync dist to web root)
- name: Deploy (sync dist to web root)
run: |
set -euo pipefail
test -d dist
DEST="${{ inputs.deploy_path }}"
DEST="${DEST%/}"
mkdir -p "$DEST"
rsync -a --delete dist/ "$DEST/"
find "$DEST" -mindepth 1 -maxdepth 1 -exec rm -rf {} +
cp -a dist/. "$DEST/"
- name: Set ownership for Nginx (Baota www)
if: ${{ inputs.chown_www }}