feat: GitHub Actions gallery + GitHub Pages site with thumbnails#4
Open
2u841r wants to merge 3 commits into
Open
feat: GitHub Actions gallery + GitHub Pages site with thumbnails#42u841r wants to merge 3 commits into
2u841r wants to merge 3 commits into
Conversation
Generates 256x256 thumbnails via ImageMagick, builds static site with folder nav, lightbox, and download links. Deploys to GitHub Pages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.coin the top-right. Once Pages is live, consider updating it to your GitHub Pages URL:Settings → General → Website → set to
https://makccr.github.io/wallpapersThis lets visitors find the gallery directly from the repo page.
How it works
.github/workflows/deploy.yml) triggers on every push tomaster.github/scripts/build_site.py) uses Pillow to generate thumbnails in parallel, caches them between runs so unchanged images are skippedraw.githubusercontent.com— no duplication in the artifactBuild time