diff --git a/.github/workflows/actions-publish-javadoc.yml b/.github/workflows/actions-publish-javadoc.yml deleted file mode 100644 index e2c1a84..0000000 --- a/.github/workflows/actions-publish-javadoc.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Deploy Javadoc - -permissions: - contents: write - -on: - push: - branches: - - master - - main - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - name: Deploy javadoc to Github Pages - uses: dev-vince/actions-publish-javadoc@v1.0.1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - java-version: "8" # Replace with your java version. Default is 17 - project: maven # The project type. By default maven - branch: "gh-pages" # The branch for the javadoc contents. By default gh-pages diff --git a/.github/workflows/publish-javadoc.yml b/.github/workflows/publish-javadoc.yml new file mode 100644 index 0000000..7ac6245 --- /dev/null +++ b/.github/workflows/publish-javadoc.yml @@ -0,0 +1,23 @@ +name: Deploy Javadoc + +on: + push: + branches: + - master + - main + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: write # if you have a protection rule on your repository, you'll need to give write permission to the workflow. + steps: + - name: Deploy JavaDoc 🚀 + uses: MathieuSoysal/Javadoc-publisher.yml@v2.5.0 + # https://github.com/marketplace/actions/deploy-publish-javadoc + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + javadoc-branch: gh-pages + java-version: 8 + target-folder: "" # url will be https://.github.io//javadoc, This can be left as nothing to generate javadocs in the root folder. + project: maven