Skip to content

Commit 2464944

Browse files
onobcdsyer
authored andcommitted
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 <[email protected]>
1 parent ba5ab90 commit 2464944

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: .github/workflows/docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535
echo BUILD_VERSION=$BUILD_VERSION >> $GITHUB_ENV
3636
- name: Run Antora
3737
run: |
38-
./mvnw -pl spring-grpc-docs process-resources antora -P docs
38+
./build-docs.sh
3939
- name: Publish Docs
4040
uses: spring-io/spring-doc-actions/[email protected]
4141
with:
4242
docs-username: ${{ secrets.DOCS_USERNAME }}
4343
docs-host: ${{ secrets.DOCS_HOST }}
4444
docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }}
4545
docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }}
46-
site-path: spring-grpc-docs/target/antora/site
46+
site-path: spring-grpc-docs/target/antora/site

Diff for: build-docs.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/bin/bash
22

3+
# Be sure the ConfigurationPropertiesAsciidocGenerator is compiled
4+
./mvnw -pl spring-grpc-docs package
5+
6+
# Generate the config props and antora site
37
./mvnw -pl spring-grpc-docs process-resources antora -P docs

0 commit comments

Comments
 (0)