Test documentation #815
Workflow file for this run
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
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Pull Request | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
jobEmulatorMatrixSetup: | |
runs-on: ubuntu-latest | |
outputs: | |
emulator_jobs_matrix: ${{ steps.dataStep.outputs.emulator_jobs_matrix }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
cache: gradle | |
- name: Prepare the matrix JSON | |
run: ./gradlew ciEmulatorJobsMatrixSetup | |
- id: dataStep | |
run: echo "emulator_jobs_matrix=$(jq -c . < ./build/emulator_jobs_matrix.json)" >> $GITHUB_OUTPUT | |
documentation: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- uses: gradle/gradle-build-action@v2 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Generate documentation | |
run: ./gradlew dokkaHtmlMultiModule | |
- name: Uploading build folder | |
uses: actions/upload-artifact@v2 | |
with: | |
name: artefact | |
path: build/dokka/htmlMultiModule | |
- name: Deploy API documentation to Github Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: build/dokka/htmlMultiModule | |
target-folder: docs |