From bda016751168d6550fa37831edbb8e34dbc9322b Mon Sep 17 00:00:00 2001 From: zds <49744633+zds-s@users.noreply.github.com> Date: Fri, 11 Oct 2024 23:29:16 +0800 Subject: [PATCH] fixed --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7dd71a4..242bfaf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -48,7 +48,7 @@ jobs: - name: Build with VitePress run: | pnpm run build - scp -i /tmp/test.pem -P ~/.ssh/id_rsa -r .vitepress/dist/ ${{ secrets.SSH_USER }}@${{ secrets.SERVER_HOST }}:/opt/www/doc-v3/ + scp -i ~/.ssh/id_rsa -P ${{ secrets.SERVER_PORT }} -r .vitepress/dist/ ${{ secrets.SSH_USER }}@${{ secrets.SERVER_HOST }}:/opt/www/doc-v3/ if [ $? -ne 0 ]; then echo "Upload failed" exit 1