Skip to content

Commit 8877e7b

Browse files
committed
ci(docs): make changelog optional and show dist summary
1 parent 4bc3040 commit 8877e7b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/docs-deploy-bt.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
fi
9090
set -euo pipefail
9191
{
92-
pnpm run gen:changelog
92+
pnpm run gen:changelog --if-present
9393
pnpm -C apps/docs build
9494
} 2>&1 | tee docs-build.log
9595
@@ -147,7 +147,17 @@ jobs:
147147
run: |
148148
PORT="${DOCS_DEPLOY_PORT:-22}"
149149
TARGET_DIR="${{ steps.target_path.outputs.TARGET_DIR }}"
150-
rsync -az --delete -e "ssh -p $PORT" apps/docs/.vitepress/dist/ "$DOCS_DEPLOY_USER@$DOCS_DEPLOY_HOST:$TARGET_DIR/"
150+
rsync -az --delete --timeout=120 --info=progress2 -e "ssh -p $PORT" apps/docs/.vitepress/dist/ "$DOCS_DEPLOY_USER@$DOCS_DEPLOY_HOST:$TARGET_DIR/"
151+
152+
- name: Print remote dist summary
153+
env:
154+
DOCS_DEPLOY_HOST: ${{ secrets.DOCS_DEPLOY_HOST }}
155+
DOCS_DEPLOY_PORT: ${{ secrets.DOCS_DEPLOY_PORT }}
156+
DOCS_DEPLOY_USER: ${{ secrets.DOCS_DEPLOY_USER }}
157+
run: |
158+
PORT="${DOCS_DEPLOY_PORT:-22}"
159+
TARGET_DIR="${{ steps.target_path.outputs.TARGET_DIR }}"
160+
ssh -p "$PORT" "$DOCS_DEPLOY_USER@$DOCS_DEPLOY_HOST" "hostname; ls -la '$TARGET_DIR' | head -n 30; du -sh '$TARGET_DIR' || true"
151161
152162
- name: Verify remote artifacts
153163
env:

0 commit comments

Comments
 (0)