Skip to content

Commit

Permalink
fix: file issue for ssh key
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-devfront committed Mar 21, 2024
1 parent 35362b0 commit 6cad39f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ jobs:
npm install
npm run build
- name: Print SSH Key to File
run: echo "${{ secrets.VPS_SSH_KEY }}" > ssh_key

- name: Deploy to VPS
env:
SSH_PRIVATE_KEY: ${{ secrets.VPS_SSH_KEY }}
run: |
scp -o StrictHostKeyChecking=no -i ssh_key -r dist/* ${{ secrets.VPS_USERNAME }}@${{ secrets.VPS_HOST }}:${{ secrets.VPS_PROJECT_FOLDER }}
scp -o StrictHostKeyChecking=no -i <(echo "$SSH_PRIVATE_KEY") ssh_key -r dist/* ${{ secrets.VPS_USERNAME }}@${{ secrets.VPS_HOST }}:${{ secrets.VPS_PROJECT_FOLDER }}

0 comments on commit 6cad39f

Please sign in to comment.