Skip to content

Commit

Permalink
Merge pull request #1577 from hngprojects/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
incredible-phoenix246 authored Oct 29, 2024
2 parents d0727c2 + 1019f54 commit df67762
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/production-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}

Expand Down Expand Up @@ -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
5 changes: 2 additions & 3 deletions .github/workflows/staging-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}

Expand Down Expand Up @@ -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

0 comments on commit df67762

Please sign in to comment.