diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 29bdb01..ae9fd6d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,7 @@ jobs: name: Deploy to server runs-on: self-hosted steps: + - uses: actions/checkout@v4 - name: Pull and build run: | cd ~/barbarian-bot/ @@ -12,4 +13,5 @@ jobs: git checkout master git pull npm install + npm run build pm2 restart barbarian-bot \ No newline at end of file