diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c088942..8383b09 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -29,6 +29,15 @@ jobs: npm run migrate:one node scripts/postflight-check.js + - name: Seed Tuxedo Corn 2026 tour data + env: + DATABASE_URL: ${{ secrets.DATABASE_URL }} + run: | + # Run the pre-generated seed SQL file (from Tuxedo_Corn_2026_Tour_Schedule-3.xlsx via scripts/import-tuxedo-stops.ts --emit-sql). + # Uses admin_create_locations_batch + admin_create_stops_batch RPCs (from migration 0003). + # Wrapped in BEGIN/COMMIT with DELETE-first semantics — safe to re-run. + psql "$DATABASE_URL" -f db/seeds/2026-tuxedo-tour-stops.sql + - name: Build env: NODE_ENV: production