Skip to content

Commit

Permalink
Update deploy-blog.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alibabaedge authored Jun 27, 2024
1 parent e88e52b commit 5294ce3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-blog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
- name: Deploy to server
env:
SSHPASS: ${{ secrets.SSH_PASSWORD }}
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
run: |
echo "SSH_HOST: ${{ secrets.SSH_HOST }}"
echo "SSH_USERNAME: ${{ secrets.SSH_USERNAME }}"
sshpass -e ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} "mkdir -p ~/validatorinfo-blog"
sshpass -e rsync -avz --delete -e "ssh -o StrictHostKeyChecking=no" ./_site/ ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }}:~/validatorinfo-blog/
sshpass -e ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$SSH_HOST "mkdir -p ~/validatorinfo-blog"
sshpass -e rsync -avz --delete -e "ssh -o StrictHostKeyChecking=no" ./_site/ $SSH_USERNAME@$SSH_HOST:~/validatorinfo-blog/

0 comments on commit 5294ce3

Please sign in to comment.