Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
revamp deployment process script
  • Loading branch information
Abdi-01 authored Jun 20, 2024

Verified

This commit was signed with the committer’s verified signature.
wzrdtales Tobias Gurtzick
1 parent 9b519b6 commit ff12fd9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ jobs:
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
source: './apps/web/.next, ./apps/web/*, ./apps/web/.*, ./apps/api, ./deploy.config.js, ./package*.json, ./turbo.json'
source: './apps/web/.next, ./apps/web/*, ./apps/web/.*, ./apps/api, ./deploy.config.js, ./package*.json, ./turbo.json, ./.husky'
target: '${{ secrets.SSH_FOLDER }}'
- name: Run App
uses: appleboy/ssh-action@master
@@ -38,7 +38,9 @@ jobs:
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
cd ${{ secrets.SSH_FOLDER }}
npm install
npx prisma migrate dev --schema=./apps/api/prisma/schema.prisma
pm2 start npm --name "${{ secrets.PROJECT_NAME }}" -- run serve
npx prisma generate --schema=./apps/api/prisma/schema.prisma
pm2 start deploy.config.js

0 comments on commit ff12fd9

Please sign in to comment.