Skip to content

Commit

Permalink
feat: update deploy to vps with homemade script
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-devfront committed Mar 21, 2024
1 parent 9007215 commit 5f1c132
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [created]

jobs:
if: !github.event.prerelease
deploy:
runs-on: ubuntu-latest

Expand All @@ -23,11 +24,9 @@ jobs:
npm install
npm run build
- name: Print SSH Key to File
run: echo "${{ secrets.VPS_SSH_KEY }}" > ssh_key

- name: Deploy to VPS
uses: appleboy/[email protected]
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USERNAME }}
key: ${{ secrets.VPS_SSH_KEY }}
source: "dist/*"
target: ${{ secrets.VPS_PROJECT_FOLDER }}
run: |
scp -o StrictHostKeyChecking=no -i ssh_key -r dist/* ${{ secrets.VPS_USERNAME }}@${{ secrets.VPS_HOST }}:${{ secrets.VPS_PROJECT_FOLDER }}

0 comments on commit 5f1c132

Please sign in to comment.