diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 26c5d81..4c9ce5c 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,6 +1,9 @@ name: Node.js CI/CD -on: [push] # tells github to run this on any push to the repository +on: + push: # tells github to run this on any push to the repository + branches: + - main jobs: deploy: @@ -15,8 +18,8 @@ jobs: key: ${{ secrets.KEY }} port: ${{ secrets.PORT }} script: | - cd infrabot # we move into our app's folder + cd nodbot # we move into our app's folder git pull # we pull any changes from git npm prune # we remove any unused dependencies npm install # we install any missing dependencies - pm2 reload all # we reload the app via PM2 + pm2 reload nodbot # we reload the app via PM2