diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 55eee8078d..5d7b4de6d1 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -4,6 +4,13 @@ on: push: branches: - main + repository_dispatch: + types: [groma-architecture-updated] + workflow_dispatch: {} + +concurrency: + group: github-pages + cancel-in-progress: true jobs: deploy: @@ -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: 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