Skip to content

MAIN-T-119 Publish JavaDoc to GitHub Pages #7

MAIN-T-119 Publish JavaDoc to GitHub Pages

MAIN-T-119 Publish JavaDoc to GitHub Pages #7

Workflow file for this run

name: documentation
on:
# push:
# branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
publish-javadoc:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Generate documentation with Gradle Wrapper
working-directory: server
run: ./gradlew dokkaHtml
- name: Deploy JavaDoc 🚀
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: javadoc
clean: true
folder: server/build/dokka/html
target-folder: javadoc
# uses: MathieuSoysal/[email protected]
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# javadoc-branch: javadoc
# java-version: 17
# project: gradle
# target-folder: dokkaHtml
# javadoc-source-folder: build/dokka/html