From 717fb98c1ac275e9bff5501ad4e1b7c19cc42330 Mon Sep 17 00:00:00 2001 From: maximthomas Date: Tue, 29 Oct 2024 20:31:14 +0300 Subject: [PATCH 1/3] fix docs push warring when there are no changes --- .github/workflows/deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 74aa99787c..105a62dcb5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -157,5 +157,8 @@ jobs: rm -rf ${REPO_NAME_LC}/modules cp -R ../${SITE_DOC_FOLDER}/target/asciidoc/antora/modules ../doc.openidentityplatform.org/${REPO_NAME_LC} git add -A - git commit -a -m "upload ${{github.event.repository.name}} docs after deploy ${{ github.sha }}" - git push --force https://github.com/OpenIdentityPlatform/doc.openidentityplatform.org.git + if ! git diff-index --quiet HEAD; then + echo "committing changes to the docs repository" + git commit -a -m "upload ${{github.event.repository.name}} docs after deploy ${{ github.sha }}" + git push --force https://github.com/OpenIdentityPlatform/doc.openidentityplatform.org.git + fi From 50f8aa6371aae644cc227b14175b23f5de2d3c4b Mon Sep 17 00:00:00 2001 From: maximthomas Date: Wed, 30 Oct 2024 11:08:46 +0300 Subject: [PATCH 2/3] Add generated pdf docs archive as an uploaded artifact --- opendj-doc-generated-ref/pom.xml | 35 +++++++++++++++++++ opendj-doc-generated-ref/src/main/ant/zip.xml | 16 ++------- 2 files changed, 37 insertions(+), 14 deletions(-) diff --git a/opendj-doc-generated-ref/pom.xml b/opendj-doc-generated-ref/pom.xml index 3d038032c3..a880de4136 100644 --- a/opendj-doc-generated-ref/pom.xml +++ b/opendj-doc-generated-ref/pom.xml @@ -671,6 +671,41 @@ + + org.apache.maven.plugins + maven-antrun-plugin + + + zip-docs + package + + + + + + + + + + + run + + + + + + ant-contrib + ant-contrib + ${ant.contrib.version} + + + ant + ant + + + + + diff --git a/opendj-doc-generated-ref/src/main/ant/zip.xml b/opendj-doc-generated-ref/src/main/ant/zip.xml index 39ddb42c0c..0b7292fd07 100644 --- a/opendj-doc-generated-ref/src/main/ant/zip.xml +++ b/opendj-doc-generated-ref/src/main/ant/zip.xml @@ -1,22 +1,10 @@ - - - - - - - - - - - - - - + + \ No newline at end of file From 33d9568e7f211ce4cd2e637fe6d1357ed7685923 Mon Sep 17 00:00:00 2001 From: maximthomas Date: Wed, 30 Oct 2024 12:48:58 +0300 Subject: [PATCH 3/3] fix build issue --- opendj-doc-generated-ref/pom.xml | 47 ++++++++++++++------------------ 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/opendj-doc-generated-ref/pom.xml b/opendj-doc-generated-ref/pom.xml index a880de4136..0da2a8ad6d 100644 --- a/opendj-doc-generated-ref/pom.xml +++ b/opendj-doc-generated-ref/pom.xml @@ -547,32 +547,6 @@ - - maven-antrun-plugin - - - copy-man-pages - package - - run - - - - - - - - - - - - - - - - - - org.asciidoctor asciidoctor-maven-plugin @@ -675,6 +649,27 @@ org.apache.maven.plugins maven-antrun-plugin + + copy-man-pages + prepare-package + + run + + + + + + + + + + + + + + + + zip-docs package