From 6a8bcceb2acbaf793157f692e6a4b6e90ce4daf5 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Thu, 16 Jun 2022 23:56:13 +0200 Subject: [PATCH] docs: Publish javadocs to GH actions --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ Bukkit/build.gradle.kts | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5926f3a57..58e9f609d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,3 +40,25 @@ jobs: env: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} + - name: Publish core javadoc + uses: cpina/github-action-push-to-another-repository@main + env: + SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} + with: + source-directory: 'Core/build/docs/javadoc' + destination-github-username: 'IntellectualSites' + destination-repository-name: 'plotsquared-javadocs' + user-email: ${{ secrets.USER_EMAIL }} + target-branch: main + target-directory: core + - name: Publish bukkit javadoc + uses: cpina/github-action-push-to-another-repository@main + env: + SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} + with: + source-directory: 'Bukkit/build/docs/javadoc' + destination-github-username: 'IntellectualSites' + destination-repository-name: 'plotsquared-javadocs' + user-email: ${{ secrets.USER_EMAIL }} + target-branch: main + target-directory: bukkit diff --git a/Bukkit/build.gradle.kts b/Bukkit/build.gradle.kts index 4f6c6721d..cc79615da 100644 --- a/Bukkit/build.gradle.kts +++ b/Bukkit/build.gradle.kts @@ -99,7 +99,7 @@ tasks { val opt = options as StandardJavadocDocletOptions opt.links("https://jd.papermc.io/paper/1.18/") opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-bukkit/" + libs.worldeditBukkit.get().versionConstraint.toString()) - opt.links("https://javadoc.io/doc/com.plotsquared/PlotSquared-Core/latest/") + // opt.links("https://javadoc.io/doc/com.plotsquared/PlotSquared-Core/latest/") opt.links("https://jd.adventure.kyori.net/api/4.9.3/") opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/") opt.links("https://checkerframework.org/api/")