From 0c6e897d63d6f03b78d1617cad99d6a4eebd1361 Mon Sep 17 00:00:00 2001 From: Frank Delporte Date: Wed, 7 Oct 2026 13:10:18 +0200 Subject: [PATCH 1/5] Publish Pi4J's Groma architecture map at pi4j.com/groma Checks out Pi4J/pi4j (public, read-only) during the Hugo build, exports its already-curated groma.md architecture map into static/groma, and lets Hugo copy it to the site root as usual. Also reacts to a repository_dispatch sent from Pi4J/pi4j whenever architecture-relevant paths change on its main branch, so the page stays current without waiting for an unrelated push to this repo. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/hugo.yml | 15 +++++++++++++++ .gitignore | 3 +++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 55eee8078d..240ed6a7e3 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -4,6 +4,9 @@ on: push: branches: - main + repository_dispatch: + types: [groma-architecture-updated] + workflow_dispatch: {} jobs: deploy: @@ -14,6 +17,18 @@ jobs: submodules: true # Fetch Hugo themes (true or recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + - name: Checkout Pi4J (for its Groma architecture map) + uses: actions/checkout@v4 + with: + repository: Pi4J/pi4j + path: pi4j-src + + - name: Export Groma architecture map + working-directory: pi4j-src + run: | + npm i -g groma.md + groma export --url "https://www.pi4j.com/groma" "$GITHUB_WORKSPACE/static/groma" + - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: diff --git a/.gitignore b/.gitignore index 27f85d43b3..85d8026c22 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,9 @@ bin # Hugo build output (regenerated by CI on every push) /public/ +# Groma architecture map (regenerated by CI from Pi4J/pi4j) +/static/groma/ + # IntelliJ files .idea *.iml From dbce3250a053d2f3a3486112ce24f3ce30ba4cf8 Mon Sep 17 00:00:00 2001 From: Frank Delporte Date: Wed, 7 Oct 2026 13:13:16 +0200 Subject: [PATCH 2/5] TEMP: pin pi4j checkout to feature branch for pre-merge validation --- .github/workflows/hugo.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 240ed6a7e3..521c3eef69 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -21,6 +21,7 @@ jobs: uses: actions/checkout@v4 with: repository: Pi4J/pi4j + ref: feature/groma-architecture-map # TEMP: pre-merge validation only, reverted before merge path: pi4j-src - name: Export Groma architecture map From e19ccf3c1fc05570f24c5b0ef82b6885c4d488a1 Mon Sep 17 00:00:00 2001 From: Frank Delporte Date: Wed, 7 Oct 2026 13:14:13 +0200 Subject: [PATCH 3/5] Revert "TEMP: pin pi4j checkout to feature branch for pre-merge validation" This reverts commit dbce3250a053d2f3a3486112ce24f3ce30ba4cf8. --- .github/workflows/hugo.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 521c3eef69..240ed6a7e3 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -21,7 +21,6 @@ jobs: uses: actions/checkout@v4 with: repository: Pi4J/pi4j - ref: feature/groma-architecture-map # TEMP: pre-merge validation only, reverted before merge path: pi4j-src - name: Export Groma architecture map From cf6707f1bf40b57946bcb27510728dd95a83da84 Mon Sep 17 00:00:00 2001 From: Frank Delporte Date: Wed, 7 Oct 2026 13:17:43 +0200 Subject: [PATCH 4/5] Configure concurrency for GitHub Pages workflow Add concurrency settings for GitHub Pages deployment Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/hugo.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 240ed6a7e3..61a0b26ec5 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -8,6 +8,10 @@ on: types: [groma-architecture-updated] workflow_dispatch: {} +concurrency: + group: github-pages + cancel-in-progress: true + jobs: deploy: runs-on: ubuntu-latest From 231982be18ad588f33a9d595665bb63ccfc0c957 Mon Sep 17 00:00:00 2001 From: Frank Delporte Date: Wed, 7 Oct 2026 13:18:10 +0200 Subject: [PATCH 5/5] Pin groma.md version to 0.6.6 in workflow Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/hugo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 61a0b26ec5..5d7b4de6d1 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -30,7 +30,7 @@ jobs: - name: Export Groma architecture map working-directory: pi4j-src run: | - npm i -g groma.md + npm i -g groma.md@0.6.6 groma export --url "https://www.pi4j.com/groma" "$GITHUB_WORKSPACE/static/groma" - name: Setup Hugo