Last active
October 21, 2025 12:13
-
-
Save Project516/2eccafb22440aca4793fcae1efa6da94 to your computer and use it in GitHub Desktop.
Generate JavaDoc and deploy to GitHub Pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Generate javadoc and deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| [ "master" ] | |
| jobs: | |
| build: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v5 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' # Replace with Java version | |
| - name: Generate JavaDoc | |
| run: ./gradlew javadoc | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./build/docs/javadoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment