feat: use git pull instead of fetch/reset #22
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 to EC2 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: self-hosted | |
| steps: | |
| - name: Deploy | |
| run: | | |
| export PATH=/home/ec2-user/.bun/bin:$PATH | |
| cd /var/www/Scholarships-Plus | |
| git pull origin main | |
| bun install --frozen-lockfile | |
| bunx prisma generate | |
| bunx prisma migrate deploy | |
| bun run build | |
| bun run build:extension | |
| pm2 restart scholarships-plus | |
| pm2 list | grep scholarships-plus |