Skip to content

Commit

Permalink
πŸš€ Javadoc Deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
XyperCode committed Nov 7, 2023
1 parent 7e51442 commit d52c26c
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/javadoc-releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy Javadoc

on:
release:
types:
- published

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: πŸš€ Deploy JavaDoc Release
uses: MathieuSoysal/Javadoc-publisher.yml@v2.4.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
javadoc-branch: javadoc
java-version: 17
target-folder: docs/${{ github.event.release.tag_name }}
project: gradle
19 changes: 19 additions & 0 deletions .github/workflows/javadoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy Javadoc

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: πŸš€ Deploy JavaDoc
uses: MathieuSoysal/Javadoc-publisher.yml@v2.4.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
javadoc-branch: javadoc
java-version: 17
target-folder: docs/latest
project: gradle
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,17 @@ publish.dependsOn build
tasks.withType(GenerateModuleMetadata) {
enabled = false
}

afterEvaluate {
javadoc {
source(sourceSets.main.allJava.sourceDirectories)
title = "CoreLibs"
description = "CoreLibs is the core library collection for Ultreon Team projects."
setDestinationDir(file("$rootProject.projectDir/build/docs/javadoc"))
// Configure the classpath
classpath = files(sourceSets.main.compileClasspath)
(options as StandardJavadocDocletOptions).links(
// Kinda empty in here lmao.
)
}
}

0 comments on commit d52c26c

Please sign in to comment.