diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 12d5a4c6..08567016 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -25,14 +25,16 @@ jobs: git fetch origin --prune git reset --hard origin/main - # REMOVE OLD CACHE AND BUILDS (Adjust to .output, .next, or dist depending on your framework) + # REMOVE OLD CACHE AND BUILDS rm -rf .next .output dist # 4. Configure pnpm to automatically approve build scripts pnpm config set trusted-dependencies @parcel/watcher,@swc/core,sharp - # Install dependencies, run migrations, and build the application + # Install dependencies pnpm install --frozen-lockfile + + # Database updates, client generation and build pnpm db:migrate pnpm prisma generate pnpm build