From ba80d116282f432287fdb1e1e9fc1f59bae385a6 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Tue, 19 Oct 2021 18:57:45 -0400 Subject: [PATCH] Updating workflow --- .github/workflows/deploy.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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