From 7279862def31abac314f7aff54b452548ff8b653 Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Fri, 17 Jun 2022 23:40:29 +0200 Subject: [PATCH] docs: Publish javadocs to GH actions (#3686) * docs: Publish javadocs to GH actions * chore: Use updated URL * chore: Use correct URL --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ Bukkit/build.gradle.kts | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5926f3a57..bee920ea9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,3 +40,27 @@ jobs: env: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} + - name: Publish core javadoc + if: ${{ runner.os == 'Linux' && env.STATUS == 'release' && github.event_name == 'push' && github.ref == 'refs/heads/v6'}} + 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 + if: ${{ runner.os == 'Linux' && env.STATUS == 'release' && github.event_name == 'push' && github.ref == 'refs/heads/v6'}} + 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..f29140b42 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://intellectualsites.github.io/plotsquared-javadocs/core/") 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/")