From 1ae39a1396d77b212ba74e8eb3b6d4162a3bdc5e Mon Sep 17 00:00:00 2001 From: ztc <1608864756@qq.com> Date: Mon, 30 Dec 2024 23:59:30 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20modify=20the=20build=20pro?= =?UTF-8?q?cess?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs-server.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-server.yml b/.github/workflows/docs-server.yml index 62df697..bbdcb91 100644 --- a/.github/workflows/docs-server.yml +++ b/.github/workflows/docs-server.yml @@ -47,5 +47,17 @@ jobs: password: ${{ secrets.PASSWORD }} source: 'docs/zebra-swiper-docs/.vitepress/dist/*' target: '/www/wwwroot/swiper.zebraui.com/dist' - strip_components: 3 + strip_components: 4 rm: true + + - name: Move files to root + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: | + cd /www/wwwroot/swiper.zebraui.com + mv dist/* . + rm -rf dist/