Made changes to actions deploy script #15
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: CI | |
on: [push] | |
jobs: | |
deploy: | |
name: Deploy to server | |
runs-on: self-hosted | |
steps: | |
- name: Pull and build | |
run: | | |
cd ~/barbarian-bot/ | |
git fetch | |
git checkout master | |
git pull | |
npm install | |
pm2 restart barbarian-bot |