Skip to content

Commit

Permalink
deploy yml update
Browse files Browse the repository at this point in the history
  • Loading branch information
singharaj-usai committed Oct 26, 2024
1 parent 9f7d0b3 commit 0775c80
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# Create this file in your repo: .github/workflows/deploy.yml
name: Deploy

on:
push:
branches: [ main ]
branches: [ main ] # or 'master' if that's your main branch

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to Digital Ocean
uses: appleboy/ssh-action@master
- name: Deploy to Server
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.HOST }}
username: root
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /var/www/valkyrie
./deploy.sh
git pull
npm install
pm2 reload all || pm2 start server/server.js --name "valkyrie"

0 comments on commit 0775c80

Please sign in to comment.