This repository has been archived by the owner on Apr 21, 2024. It is now read-only.
Merge branch 'renovate-gradle-7.x' into 'main' #63
This file contains 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: Deploy javadocs to GitHub pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
pages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout latest code | |
uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '8' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build documentation | |
run: ./gradlew clean build -x test | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: build-artifacts | |
path: build/docs/javadoc/ | |
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` | |
# DEPLOY TO GH-PAGES | |
- name: Deploy to GitHub-Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: build/docs/javadoc |