Skip to content

Update workflow to use JDK 17 #2

Update workflow to use JDK 17

Update workflow to use JDK 17 #2

Workflow file for this run

name: Deploy Dokka to GitHub Pages
on:
push:
branches: [ master ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'
- name: Install dependencies
run: ./gradlew build
- name: Generate Dokka documentation
run: ./gradlew dokkaHtml
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/dokka/html