Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
push:
branches:
- main
repository_dispatch:
types: [groma-architecture-updated]
Comment on lines +7 to +8

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fine-grained PAT instructions should say Contents: write for Pi4J/pi4j.github.io; Actions: write is not required for the repository_dispatch endpoint. The classic repo scope remains unchanged.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The setup instructions are in the PR description, not a repository file. They should specify a fine-grained PAT with Contents: write for Pi4J/pi4j.github.io; Actions: write is not required for repository_dispatch. The classic PAT repo scope remains unchanged.

workflow_dispatch: {}
Comment thread
Copilot marked this conversation as resolved.

concurrency:
group: github-pages
cancel-in-progress: true

jobs:
deploy:
Expand All @@ -14,6 +21,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@0.6.6
groma export --url "https://www.pi4j.com/groma" "$GITHUB_WORKSPACE/static/groma"

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down