Skip to content

Adapt to the new response structure #268

Adapt to the new response structure

Adapt to the new response structure #268

name: CI/CD with PM2
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy using ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: 22
script: |
cd ~/faceit-statistics
git pull
npm install
pm2 start pm2.config.cjs