Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Anhye0n authored Jul 10, 2024
1 parent 525d5b3 commit 8d9d55d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
cp -r dist/* deployment_package
- name: Install sshpass
run: sudo apt-get install sshpass
run: sudo apt-get install -y sshpass

- name: Deploy to Home Server
env:
SSHPASS: ${{ secrets.SSH_PASSWORD }}
run: |
sshpass -e ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} << EOF
sshpass -e ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} 'bash -s' <<EOF
mkdir -p /home/anhye0n/web/tutorial_sejong/frontend
rm -rf /home/anhye0n/web/tutorial_sejong/frontend/*
cp -r deployment_package/* /home/anhye0n/web/tutorial_sejong/frontend/
Expand Down

0 comments on commit 8d9d55d

Please sign in to comment.