Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
zds-s committed Oct 11, 2024
1 parent 9e0b071 commit 927adcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 927adcc

Please sign in to comment.