I need to generate a JavaDoc from my GitHub repository and publish it to a webpage like GitHub Page.
I found this solution on StackOverflow: Publish automatically JavaDoc: with GitHub Actions
name: Deploy Javadoc
on:
push:
branches:
- master
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Deploy JavaDoc