Skip to content

Commit

Permalink
Merge pull request #58 from ga-devfront/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ga-devfront authored Mar 21, 2024
2 parents 66cda09 + 35362b0 commit 1c53ab6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest

if: github.event.release.prerelease == false
steps:
- uses: actions/checkout@v4

Expand All @@ -23,11 +23,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 1c53ab6

Please sign in to comment.