Created
July 1, 2020 20:24
-
-
Save berat/f5eb0b1c7cd2071d1282b41b05cbcf27 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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