mirror of
https://github.com/D-Modem/brand.git
synced 2026-11-28 17:58:05 -08:00
tools/brand_ref.py writes docs/reference.md from tools/gen.py and tools/art.py: each repository's Book, colour, icon and taglines, the palette, and art.py's options (art.py's parser is now a function it can read). With --check it also fails if the sites' theme gives a repository another colour than gen.py does. The Pages workflow builds brand's site with site.yml and the theme of the commit being built. Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn Co-authored-by: Claude <noreply@anthropic.com>
25 lines
769 B
YAML
25 lines
769 B
YAML
# brand's own site, https://d-modem.github.io/brand/, built by the workflow
|
|
# every repository's site uses (site.yml) with the theme of this very
|
|
# commit, so a pull request shows its own theme changes. It fails if
|
|
# docs/reference.md isn't what tools/gen.py and tools/art.py make now, or
|
|
# the theme's colours disagree with gen.py's (python3 tools/brand_ref.py).
|
|
name: Pages
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
concurrency:
|
|
group: pages-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
site:
|
|
uses: ./.github/workflows/site.yml
|
|
with:
|
|
brand-ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
prepare: python3 tools/brand_ref.py --check
|