From 2464944f6e798b8a931b8a326626e9abcc65a8b0 Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Mon, 3 Mar 2025 15:38:52 -0600 Subject: [PATCH] Fix docs.yml workflow (add 'package' command) The recent move to do config props generation only at docs generation time left the docs.yml broken as it requires the config props generator class to be compiled prior to running. This updates the './build-docs.sh' to include the package command as well as update the docs.yml to use the same script. Signed-off-by: Chris Bono --- .github/workflows/docs.yml | 4 ++-- build-docs.sh | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c730aa6..e14de37 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -35,7 +35,7 @@ jobs: echo BUILD_VERSION=$BUILD_VERSION >> $GITHUB_ENV - name: Run Antora run: | - ./mvnw -pl spring-grpc-docs process-resources antora -P docs + ./build-docs.sh - name: Publish Docs uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.11 with: @@ -43,4 +43,4 @@ jobs: docs-host: ${{ secrets.DOCS_HOST }} docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }} docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }} - site-path: spring-grpc-docs/target/antora/site \ No newline at end of file + site-path: spring-grpc-docs/target/antora/site diff --git a/build-docs.sh b/build-docs.sh index 09f50ec..cfc9bfb 100755 --- a/build-docs.sh +++ b/build-docs.sh @@ -1,3 +1,7 @@ #!/bin/bash +# Be sure the ConfigurationPropertiesAsciidocGenerator is compiled +./mvnw -pl spring-grpc-docs package + +# Generate the config props and antora site ./mvnw -pl spring-grpc-docs process-resources antora -P docs