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/")