From e051457e9102918c1d08b08ca323db19402ddf45 Mon Sep 17 00:00:00 2001 From: maximthomas Date: Wed, 4 Sep 2024 12:24:09 +0300 Subject: [PATCH] Publish javadoc to the documentation site --- .github/workflows/deploy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 89e1e39f6..86a50c3da 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -54,6 +54,8 @@ jobs: MAVEN_OPTS: -Dhttps.protocols=TLSv1.2 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true -Dmaven.wagon.http.retryHandler.count=10 if: ${{ github.event.workflow_run.event=='push' && env.MAVEN_USERNAME!='' && env.MAVEN_PASSWORD!=''}} run: mvn --batch-mode --errors --update-snapshots -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy --file pom.xml + - name: Build Javadoc + run: mvn javadoc:aggregate -pl '!openig-war' -pl '!openig-ui' - name: Upload artifacts OpenIG Server Only Component uses: actions/upload-artifact@v4 with: @@ -104,6 +106,7 @@ jobs: cd doc.openidentityplatform.org rm -rf ${REPO_NAME_LC} cp -R ../${SITE_DOC_FOLDER}/target/docbkx/bootstrap ../doc.openidentityplatform.org/${REPO_NAME_LC} + cp -R ../target/site/apidocs ../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 \ No newline at end of file + git push --force https://github.com/OpenIdentityPlatform/doc.openidentityplatform.org.git