From c8b8a4df11269ebece5148dd5762f1131bb43f61 Mon Sep 17 00:00:00 2001
From: Amith Koujalgi <koujalgi.amith@gmail.com>
Date: Tue, 26 Dec 2023 14:37:04 +0530
Subject: [PATCH] Updated docs

---
 .github/workflows/publish-docs.yml | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml
index 97e8907..0495f46 100644
--- a/.github/workflows/publish-docs.yml
+++ b/.github/workflows/publish-docs.yml
@@ -1,5 +1,5 @@
 # Simple workflow for deploying static content to GitHub Pages
-name: Deploy Javadoc content to Pages
+name: Deploy Docs to GH Pages
 
 on:
   # Runs on pushes targeting the default branch
@@ -30,6 +30,18 @@ jobs:
       name: github-pages
       url: ${{ steps.deployment.outputs.page_url }}
     steps:
+      - uses: actions/checkout@v3
+      - name: Set up JDK 11
+        uses: actions/setup-java@v3
+        with:
+          java-version: '11'
+          distribution: 'adopt-hotspot'
+          server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
+          settings-path: ${{ github.workspace }} # location for the settings.xml file
+
+      - name: Build with Maven
+        run: mvn --file pom.xml -U clean package
+
       - uses: actions/checkout@v4
       - name: Use Node.js
         uses: actions/setup-node@v3
@@ -37,9 +49,8 @@ jobs:
           node-version: '20.x'
       - run: cd docs && npm ci
       - run: cd docs && npm run build
+      - run: cp -r ./target/apidocs/. ./docs/build/apidocs
 
-#      - name: Build with npm
-#        run: npm i && npm run build
       - name: Setup Pages
         uses: actions/configure-pages@v3
       - name: Upload artifact