Static GitHub Pages site for tracking the longest-standing Trackmania 2020 world records on official seasonal campaign and Track of the Day maps.
python -m http.server 8000 --directory siteOpen http://localhost:8000.
Create a local .env file with:
UBI_EMAIL=...
UBI_PASS=...
TM_CLIENT_ID=...
TM_CLIENT_SECRET=...For fewer Ubisoft login rate-limit problems, prefer a Trackmania dedicated server account for the Nadeo Live token:
TM_DEDI_LOGIN=...
TM_DEDI_PASSWORD=...
TM_CLIENT_ID=...
TM_CLIENT_SECRET=...Then run:
python -m pip install -r requirements.txt
python scripts/fetch_records.py --out site/data --previous site/data/records.jsonThe script writes:
site/data/records.jsonsite/data/recent_changes.jsonsite/data/metadata.json
The .github/workflows/deploy-pages.yml workflow deploys site/ to GitHub Pages.
Scheduled and manual workflow runs fetch fresh records first, commit updated JSON data, and deploy the refreshed static site. Pushes to main deploy the current site/ contents.
Repository secrets required for scheduled fetching:
TM_CLIENT_IDTM_CLIENT_SECRET
For Nadeo Live authentication, set either:
TM_DEDI_LOGINandTM_DEDI_PASSWORDpreferred- or
UBI_EMAILandUBI_PASSas fallback
Optional repository variable:
TM_USER_AGENT, for a more specific API user agent string.