feat: add ELO refresh job to GitLab CI and polish mobile display

- Add refresh-elo job to .gitlab-ci.yml triggered by schedules; runs
  the Python scraper and commits updated elo-data.json back to main
- Hide Stat-Check ELO column header on mobile (sm:hidden), fold ELO
  score as a subtitle under ITC Points on mobile instead

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-29 00:07:41 -05:00
co-authored by Claude Sonnet 4.6
parent ea0c2f3a91
commit c4e355dd63
3 changed files with 29 additions and 9 deletions
+20
View File
@@ -1,6 +1,7 @@
stages:
- build
- deploy
- refresh
build:
stage: build
@@ -23,3 +24,22 @@ deploy:
environment:
name: production
url: https://40k-rankings.gateway-gamers.net
refresh-elo:
stage: refresh
image: python:3.12-slim
variables:
GIT_STRATEGY: clone
script:
- cd statcheck-elo-scraper && python refresh_elo.py && cd ..
- git config user.email "gitlab-ci@gateway-gamers.net"
- git config user.name "GitLab CI"
- git remote set-url origin "https://oauth2:${GITLAB_ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git"
- git add public/elo-data.json
- |
if ! git diff --cached --quiet; then
git commit -m "data: refresh stat-check ELO rankings [skip ci]"
git push origin HEAD:main
fi
only:
- schedules