From 927adcc3f76a63e8cec1a174345f1bf720407ddc Mon Sep 17 00:00:00 2001 From: zds <49744633+zds-s@users.noreply.github.com> Date: Fri, 11 Oct 2024 23:24:39 +0800 Subject: [PATCH] fixed --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 877161a..2c524db 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,10 +39,12 @@ jobs: - name: Install Package run: | sudo apt-get install openssh-client -y + - name: Build pem + run: | + echo ${{ secrets.SSH_KEY }} > /tmp/test.pem - name: Build with VitePress run: | pnpm run build - echo ${{ secrets.SSH_KEY }} > /tmp/test.pem scp -i /tmp/test.pem -P ${{ secrets.SERVER_PORT }} -r .vitepress/dist/ ${{ secrets.SSH_USER }}@${{ secrets.SERVER_HOST }}:/opt/www/doc-v3/ if [ $? -ne 0 ]; then echo "Upload failed"