Skip to content

Instantly share code, notes, and snippets.

@berat
Created July 1, 2020 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berat/f5eb0b1c7cd2071d1282b41b05cbcf27 to your computer and use it in GitHub Desktop.
Save berat/f5eb0b1c7cd2071d1282b41b05cbcf27 to your computer and use it in GitHub Desktop.
name: Node.js CI
on:
push:
branches: [ master ]
jobs:
deploy:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Push to server
uses: appleboy/ssh-action@master
with:
host: xxxx
username: xxxx
password:xxxx
script: cd /root/www && npm run deploy && pm2 restart app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment