Skip to content

Commit

Permalink
Merge pull request #59 from ga-devfront/develop
Browse files Browse the repository at this point in the history
fix: file issue for ssh key
  • Loading branch information
ga-devfront authored Mar 21, 2024
2 parents 1c53ab6 + 6cad39f commit 473035d
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 473035d

Please sign in to comment.