revert: https://github.com/peaceiris/actions-gh-pages/issues/1006 #17
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: Publish Javadoc to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - release/* | |
| jobs: | |
| build: | |
| # dev-vince/actions-publish-javadoc was used as base for Javadoc publishing | |
| name: Publish Javadoc to GitHub Pages | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # used to push Javadoc to gh-pages branch | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Java 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: 'gradle' | |
| - name: Grant Execute Permissions | |
| run: chmod +x gradlew | |
| - name: Generate Javadoc | |
| run: ./gradlew javadoc | |
| - name: Publish javadoc to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_branch: gh-pages | |
| publish_dir: common/build/docs/javadoc | |
| force_orphan: true |