Build a self-updating tracker: GitHub Pages, Actions, JSON
12 steps · about 4 h 5 min · Intermediate
- Quickstart for GitHub Pages (doc, GitHub Docs, 15 min)
Start by publishing a free static site, which is the hosting model a tracker like PortWatch VI runs on.
- GitHub for Beginners: Getting started with GitHub Pages (article, The GitHub Blog, 15 min)
It explains project sites and the two deployment routes (branch or Actions) before you automate anything.
- Working with JSON - Learn web development (doc, MDN, 30 min)
The tracker keeps its data in a JSON file, so you need to read and write that format first.
- Making network requests with JavaScript (tutorial, MDN, 30 min)
This shows how the page loads the JSON file and turns it into visible cards using fetch.
- Response: json() method (reference, MDN, 10 min)
A short reference with a runnable example that renders fetched JSON into list items, a pattern you can copy for your own cards.
- Quickstart for GitHub Actions (doc, GitHub Docs, 20 min)
Write your first workflow file so you understand the automation that keeps the data fresh.
- Understanding GitHub Actions (doc, GitHub Docs, 15 min)
It gives names to workflows, events, jobs, runners and actions, which you need before reading a real workflow.
- Events that trigger workflows (doc, GitHub Docs, 20 min)
It covers cron scheduling, the delays GitHub warns about, and why a refresh every 3 hours is only approximate.
- REST API endpoints for search (doc, GitHub Docs, 25 min)
This is how a scout job finds new repositories by keyword, and it explains the query qualifiers and the result limits.
- Using custom workflows with GitHub Pages (doc, GitHub Docs, 25 min)
It shows how to deploy with upload-pages-artifact and deploy-pages, so a scheduled job can publish new data.
- GitHub - 4lwayz/portwatch-vi: Does GTA VI run on PC yet? (repo, 4lwayz (GitHub), 30 min)
Read a real, small project that combines a scout, a data file and a static page, and check it against what you've learned.
- Scout may have incorrectly flagged sammwyy/xvalkyrie as a clone · Issue #5 (article, GitHub (4lwayz/portwatch-vi), 10 min)
A closing case study of a bug where the scout counted search hits instead of distinct repos, showing why automated data pipelines need checks.