Skip to content

feat: use git pull instead of fetch/reset #22

feat: use git pull instead of fetch/reset

feat: use git pull instead of fetch/reset #22

Workflow file for this run

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