Skip to content

Commit

Permalink
fix: disable profile CI when building reference docs (#2367)
Browse files Browse the repository at this point in the history
* fix: fix reference-doc

* disable profile CI

* update commits
  • Loading branch information
JoeWang1127 committed Nov 21, 2023
1 parent 18f265d commit d207fd8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 0 additions & 4 deletions docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@

<!--maven-resources-plugin:3.2.0:copy-resources fails: https://issues.apache.org/jira/browse/MSHARED-966-->
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
<!-- override version inherited from spring-cloud-build parent to one that is available on Maven Central -->
<spring-asciidoctor-backends.version>0.0.4</spring-asciidoctor-backends.version>
</properties>



<profiles>
<profile>
<id>docs</id>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/firestore.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ include::{project-root}/spring-cloud-gcp-data-firestore/src/test/java/com/google

[source, java, indent=0]
----
include::{project-root}/spring-cloud-gcp-data-firestore/src/test/java/com/google/cloud/spring/data/firestore/it/FirestoreIntegrationTestsConfiguration.java[tag=user_service_bean]
include::{project-root}/spring-cloud-gcp-data-firestore/src/test/java/com/google/cloud/spring/data/firestore/FirestoreIntegrationTestsConfiguration.java[tag=user_service_bean]
----

After that, you can autowire your service like so:
Expand Down
8 changes: 7 additions & 1 deletion docs/src/main/asciidoc/ghpages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ function switch_to_tag() {
# Build the docs if switch is on
function build_docs_if_applicable() {
if [[ "${BUILD}" == "yes" ]] ; then
./mvnw clean install -P docs -pl docs -DskipTests -q
# Disable profile CI (inherited from spring-cloud-build/pom.xml) so
# process-asciidoc can be executed in GH action runner.
# Profile CI will be activated in GH action runner because
# there's env.GITHUB_API_URL defined in the environment by
# default.
# See https://github.com/spring-cloud/spring-cloud-build/blob/v4.0.5/pom.xml#L1638-L1652.
./mvnw clean install -P docs -P '!CI' -pl docs -DskipTests
fi
}

Expand Down

0 comments on commit d207fd8

Please sign in to comment.