fix: equal gauge sizes, green wellness color, vocal biomarkers coming… #49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to GCP | |
| uses: appleboy/ssh-action@v1 | |
| with: | |
| host: ${{ secrets.SERVER_IP }} | |
| username: ${{ secrets.SERVER_USER }} | |
| key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| debug: true | |
| script: | | |
| set -e | |
| echo "=== Deploying Seniora-AI ===" | |
| cd ~/Seniora-AI && echo "In $(pwd)" | |
| echo "=== Git Pull ===" | |
| git pull origin main | |
| echo "=== npm ci ===" | |
| npm ci | |
| echo "=== Prisma Generate ===" | |
| npx prisma generate | |
| echo "=== Prisma Migrate ===" | |
| npx prisma migrate deploy | |
| echo "=== Cancel stuck assessment sessions ===" | |
| echo "UPDATE \"AssessmentSession\" SET status = 'FAILED' WHERE status IN ('PENDING', 'IN_PROGRESS');" | npx prisma db execute --stdin | |
| echo "=== Build ===" | |
| npm run build | |
| echo "=== Restart PM2 ===" | |
| pm2 delete all || true | |
| pm2 start ecosystem.config.js | |
| echo "=== Deploy Complete ===" |