Ready for NixOS builds

This commit is contained in:
NeilClack
2026-03-09 21:51:56 -05:00
parent cc51f40591
commit 0fd901b01f
9 changed files with 173 additions and 80 deletions
+37
View File
@@ -0,0 +1,37 @@
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: self-hosted
defaults:
run:
working-directory: /mnt/volume_nyc3_01/Portal.RhemaWaveTech.com
steps:
- name: Pull latest changes
run: git pull
- name: Install dependencies
run: npm ci
- name: Run migrations
run: |
set -a
source .env
set +a
npx prisma migrate deploy
- name: Build app
run: |
export DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy"
export BETTER_AUTH_SECRET="build-time-placeholder-not-used"
npm run build
- name: Install production dependencies
run: npm ci --omit=dev
- name: Restart portal
run: sudo systemctl restart portal