Skip to content

Commit

Permalink
changed the vps hosting ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
avaneeshk098 authored Jan 4, 2025
1 parent 46820bd commit 08ab907
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
env:
HOST: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
PORT: ${{ secrets.PORT }}
KEY: ${{ secrets.SSHKEY }}
with:
source: "."
Expand All @@ -29,13 +28,10 @@ jobs:
with:
host: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
PORT: ${{ secrets.PORT }}
KEY: ${{ secrets.SSHKEY }}
script: |
cd /osai-website/website-reboot/frontend
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
yarn && yarn build
pm2 stop osai-website
pm2 del osai-website
pm2 start yarn --name osai-website -- start
pm2 restart nextjs

0 comments on commit 08ab907

Please sign in to comment.