Skip to content

Update docs.yml

Update docs.yml #24

Workflow file for this run

name: Generate javadoc github pages
on:
push:
branches: [ master ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: temurin
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Generate documentation directory
uses: gradle/[email protected]
with:
arguments: javadoc
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: './build/docs/javadoc'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main