Deploy #10
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: Deploy | |
on: | |
push: | |
paths-ignore: | |
- '.github/**' | |
branches: | |
- main | |
workflow_dispatch: | |
# Jobs | |
jobs: | |
Update: | |
runs-on: self-hosted | |
strategy: | |
matrix: | |
hosts: [[email protected]] | |
steps: | |
- name: Deploy new code, install dependencies and start Advance | |
run: ssh ${{ matrix.hosts }} "cd ~/Advance && git pull && npm i && pm2 restart advance && pm2 save" |