Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

chore(deps): update dependency gradle to v8.7 #424

chore(deps): update dependency gradle to v8.7

chore(deps): update dependency gradle to v8.7 #424

Workflow file for this run

name: Build
on: [push]
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
- name: Build
run: ./gradlew build
dokka:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Clone Repository (master)
uses: actions/checkout@v4
- name: Clone Repository (gh-pages)
run: git clone https://github.com/${{ github.repository }} -b gh-pages --depth 1 dokka || mkdir dokka
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
cache: gradle
- name: Build
run: ./gradlew dokkaHtml
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dokka