Skip to content

Commit

Permalink
install scp
Browse files Browse the repository at this point in the history
  • Loading branch information
zds-s committed Oct 11, 2024
1 parent 1c6959b commit 8ce1a11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ jobs:
uses: actions/configure-pages@v3
- name: Install dependencies
run: pnpm install
- name: Install Package
run: |
sudo apt-get install openssh-client -y
scp
- name: Build with VitePress
run: |
pnpm run build
echo ${{ secrets.SSH_KEY }} > /tmp/test.pem
sudo apt-get install openssh-client -y
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 8ce1a11

Please sign in to comment.