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 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} javadoc-branch: javadoc java-version: 17 target-folder: javadoc project: gradle custom-command: gradle plugin:javadoc