Skip to content

feat: GitHub Actions gallery + GitHub Pages site with thumbnails#4

Open
2u841r wants to merge 3 commits into
makccr:masterfrom
2u841r:master
Open

feat: GitHub Actions gallery + GitHub Pages site with thumbnails#4
2u841r wants to merge 3 commits into
makccr:masterfrom
2u841r:master

Conversation

@2u841r
Copy link
Copy Markdown

@2u841r 2u841r commented Apr 29, 2026

What this adds

A GitHub Actions workflow that auto-generates a 256×256 thumbnail gallery and deploys it as a GitHub Pages site — so anyone can browse wallpapers by folder without downloading anything.

Live example: https://2u841r.github.io/wallpapers


Setup (one-time, ~1 min)

1. Enable GitHub Pages

Go to Settings → Pages → Source and select GitHub Actions (not "Deploy from a branch"). If left on branch, GitHub deploys Jekyll from your README instead of this workflow.

2. Update your website link

Your repo currently shows https://makc.co in the top-right. Once Pages is live, consider updating it to your GitHub Pages URL:

Settings → General → Website → set to https://makccr.github.io/wallpapers

This lets visitors find the gallery directly from the repo page.


How it works

  • Workflow (.github/workflows/deploy.yml) triggers on every push to master
  • Build script (.github/scripts/build_site.py) uses Pillow to generate thumbnails in parallel, caches them between runs so unchanged images are skipped
  • Full-res images load directly from raw.githubusercontent.com — no duplication in the artifact
  • Site has folder navigation, lazy-loaded thumbnails, and a lightbox with download link

Build time

Run Time
First (cold cache) ~2m
Subsequent (cache hit) ~1m 15s

2u841r added 3 commits April 29, 2026 07:25
Generates 256x256 thumbnails via ImageMagick, builds static site with
folder nav, lightbox, and download links. Deploys to GitHub Pages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant