Added the Sheepstar API to the Archive
This commit is contained in:
17
SheepstarAPIV1/.github/workflows/deploy.yml
vendored
Normal file
17
SheepstarAPIV1/.github/workflows/deploy.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
name: Deploy to SSH
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy NodeJS app
|
||||
uses: garygrossgarten/github-action-ssh@release
|
||||
with:
|
||||
host: ${{ secrets.REMOTE_HOST }}
|
||||
username: ${{ secrets.REMOTE_USER }}
|
||||
privateKey: ${{ secrets.REMOTE_SSH_KEY }}
|
||||
command: "cd /var/www/api/ && git reset --hard && git pull origin master && npm i && cd /var/www/ && npm install && pm2 restart api"
|
Reference in New Issue
Block a user