Updated docs

This commit is contained in:
Amith Koujalgi 2023-12-26 14:37:04 +05:30
parent edf74dc110
commit c8b8a4df11

View File

@ -1,5 +1,5 @@
# Simple workflow for deploying static content to GitHub Pages # Simple workflow for deploying static content to GitHub Pages
name: Deploy Javadoc content to Pages name: Deploy Docs to GH Pages
on: on:
# Runs on pushes targeting the default branch # Runs on pushes targeting the default branch
@ -30,6 +30,18 @@ jobs:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}
steps: 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 - uses: actions/checkout@v4
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
@ -37,9 +49,8 @@ jobs:
node-version: '20.x' node-version: '20.x'
- run: cd docs && npm ci - run: cd docs && npm ci
- run: cd docs && npm run build - 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 - name: Setup Pages
uses: actions/configure-pages@v3 uses: actions/configure-pages@v3
- name: Upload artifact - name: Upload artifact