This repository has been archived by the owner on Aug 31, 2024. It is now read-only.
[ghp] collapse #8
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
name: Deploy Javadocs to GitHub Pages | |
# Generate and deploy on push and request. | |
on: | |
push: | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Allow one concurrent deployment | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
# Jobs | |
jobs: | |
# Generate the docs. | |
document: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Install dependencies | |
run: sudo apt-get install -y graphviz | |
- name: Build and generate Javadocs | |
run: ./gradlew generateDebugJavadoc -PgenerateUML --no-daemon | |
- name: Deploy to GitHub Pages | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: './TeamCode/build/docs/javadoc/' |