Skip to content

Commit

Permalink
Merge pull request #102 from node-gradle/javadoc-github-action
Browse files Browse the repository at this point in the history
Build Javadoc with jdk 8 and dokka. Closes #79
  • Loading branch information
deepy authored Aug 22, 2020
2 parents 6d71899 + 2adc499 commit 153fd37
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/update-javadoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Update Javadoc
on:
push:
branches:
- master
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout Source Code
uses: actions/checkout@v2
- name: Install Java
uses: actions/setup-java@v1
with:
java-version: 8
- name: Build Javadoc
run: ./gradlew dokka
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/dokka
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ plugins {
jacoco
id("com.gradle.plugin-publish") version "0.11.0"
id("com.cinnober.gradle.semver-git") version "3.0.0"
id("org.jetbrains.dokka") version "0.10.1"

}

group = "com.github.node-gradle"
Expand Down Expand Up @@ -78,6 +80,11 @@ tasks.jacocoTestReport {
}
}

tasks.dokka {
outputFormat = "javadoc"
configuration { jdkVersion = 8 }
}

gradlePlugin {
plugins {
register("nodePlugin") {
Expand Down

0 comments on commit 153fd37

Please sign in to comment.