1
0

docs.yml 803 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Build and deploy JavaDocs
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. build-and-deploy-docs:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v3
  11. - name: set up JDK 8
  12. uses: actions/setup-java@v3
  13. with:
  14. java-version: '8'
  15. distribution: 'adopt'
  16. - name: Cache Gradle dependencies
  17. uses: actions/cache@v3
  18. with:
  19. path: ~/.gradle/caches
  20. key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
  21. restore-keys: ${{ runner.os }}-gradle
  22. - name: Build JavaDocs
  23. run: ./gradlew aggregatedJavadocs
  24. - name: Deploy JavaDocs
  25. uses: peaceiris/actions-gh-pages@v3
  26. with:
  27. github_token: ${{ secrets.GITHUB_TOKEN }}
  28. publish_dir: ./build/docs