diff --git a/.github/workflows/production-deployment.yml b/.github/workflows/production-deployment.yml index 7eb632f9e..3e9869d13 100644 --- a/.github/workflows/production-deployment.yml +++ b/.github/workflows/production-deployment.yml @@ -10,7 +10,7 @@ on: - main jobs: - build: + build-and-deploy: runs-on: ubuntu-latest if: ${{ github.ref == 'refs/heads/main'}} && ${{ github.event.workflow_run.conclusion == 'success' }} @@ -66,5 +66,4 @@ jobs: cd ~/hng_boilerplate_nextjs/prod tar -xzf nextjs-prod.tar.gz rm -f nextjs-prod.tar.gz - cp -r .next/standalone/* . - pm2 restart nextjs_boilerplateg --update-env + pm2 restart nextjs_boilerplate_prod --update-env diff --git a/.github/workflows/staging-deployment.yml b/.github/workflows/staging-deployment.yml index 763f7e44c..5675faccd 100644 --- a/.github/workflows/staging-deployment.yml +++ b/.github/workflows/staging-deployment.yml @@ -10,7 +10,7 @@ on: - staging jobs: - build: + build-and-deploy: runs-on: ubuntu-latest if: ${{ github.ref == 'refs/heads/staging'}} && ${{ github.event.workflow_run.conclusion == 'success' }} @@ -66,5 +66,4 @@ jobs: cd ~/hng_boilerplate_nextjs/staging tar -xzf nextjs-staging.tar.gz rm -f nextjs-staging.tar.gz - cp -r .next/standalone/* . - pm2 restart nextjs_boilerplate --update-env + pm2 restart nextjs_boilerplate_staging --update-env