Auto-syncing schedule for Dawson, Cameron, Preston, and Parker.
Live site: https://belcherspringbaseball.netlify.app
Once per day at 12:00 UTC:
GitHub Actions → scrapes nkcabaseball.com (4 team URLs)
↓ changes detected?
YES → rebuild index.html → commit snapshot → trigger Netlify deploy hook
NO → stop, nothing to do
Create a new GitHub repo and push all files in this folder to it.
- Netlify → Add new site → Import an existing project → GitHub
- Select your repo
- Set Publish directory to
public, leave Build command blank - Click Deploy site
Netlify will now redeploy automatically on every push — no secrets or deploy hooks needed.
Run the workflow manually once to generate the first public/index.html and schedule-snapshot.json:
GitHub → Actions → Check & Deploy Schedule → Run workflow → Force rebuild: ✓ → Run
That commit will trigger an immediate Netlify deploy.
# Run locally (check for changes, rebuild if needed)
node scripts/build.js
# Force rebuild regardless of changes
FORCE_REBUILD=1 node scripts/build.jsEach sync writes changes.json with:
added— new gamesremoved— cancelled/removed gamesmodified— time, field, or opponent changes
Edit .github/workflows/schedule-sync.yml → cron: '0 12 * * *'
to change check frequency (currently once per day at 12:00 UTC).
Timezone note: GitHub Actions cron uses UTC time.