diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml deleted file mode 100644 index 04be862..0000000 --- a/.forgejo/workflows/deploy.yml +++ /dev/null @@ -1,37 +0,0 @@ -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