2021-03-12 20:00:33 +07:00
|
|
|
name: Dokka publication
|
|
|
|
|
|
|
|
on:
|
2022-04-12 12:02:11 +03:00
|
|
|
workflow_dispatch:
|
|
|
|
release:
|
|
|
|
types: [ created ]
|
2021-03-12 20:00:33 +07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-20.04
|
2021-08-05 16:09:12 +07:00
|
|
|
timeout-minutes: 40
|
2021-03-12 20:00:33 +07:00
|
|
|
steps:
|
2022-04-01 03:06:07 +07:00
|
|
|
- uses: actions/checkout@v3.0.0
|
|
|
|
- uses: actions/setup-java@v3.0.0
|
2021-03-12 20:00:33 +07:00
|
|
|
with:
|
2022-04-01 02:23:34 +07:00
|
|
|
java-version: 11
|
|
|
|
distribution: liberica
|
2022-04-01 03:06:07 +07:00
|
|
|
- name: Cache konan
|
|
|
|
uses: actions/cache@v3.0.1
|
|
|
|
with:
|
|
|
|
path: ~/.konan
|
2021-07-17 01:12:14 +07:00
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gradle-
|
2023-05-01 13:50:29 +00:00
|
|
|
- uses: gradle/gradle-build-action@v2.4.2
|
2022-04-01 14:02:03 +07:00
|
|
|
with:
|
|
|
|
arguments: dokkaHtmlMultiModule --no-parallel
|
2022-04-12 11:10:14 +03:00
|
|
|
- uses: JamesIves/github-pages-deploy-action@v4.3.0
|
2021-03-12 20:00:33 +07:00
|
|
|
with:
|
2021-03-13 00:30:14 +07:00
|
|
|
branch: gh-pages
|
|
|
|
folder: build/dokka/htmlMultiModule
|