ci: deploy 用 cp 替代 rsync;同步 contrib 模板;更新产品说明
This commit is contained in:
@@ -59,14 +59,15 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: ${{ inputs.build_command }}
|
run: ${{ inputs.build_command }}
|
||||||
|
|
||||||
- name: Deploy (rsync dist to web root)
|
- name: Deploy (sync dist to web root)
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
test -d dist
|
test -d dist
|
||||||
DEST="${{ inputs.deploy_path }}"
|
DEST="${{ inputs.deploy_path }}"
|
||||||
DEST="${DEST%/}"
|
DEST="${DEST%/}"
|
||||||
mkdir -p "$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)
|
- name: Set ownership for Nginx (Baota www)
|
||||||
if: ${{ inputs.chown_www }}
|
if: ${{ inputs.chown_www }}
|
||||||
|
|||||||
Reference in New Issue
Block a user