2021-03-12 16:00:33 +03:00
|
|
|
name: Dokka publication
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-07-16 21:12:14 +03:00
|
|
|
branches: [ master ]
|
2021-03-12 16:00:33 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-20.04
|
2021-08-05 12:09:12 +03:00
|
|
|
timeout-minutes: 40
|
2021-03-12 16:00:33 +03:00
|
|
|
steps:
|
2021-07-16 21:12:14 +03:00
|
|
|
- uses: actions/checkout@v2
|
2022-03-31 22:23:34 +03:00
|
|
|
- uses: actions/setup-java@v2.5.0
|
2021-03-12 16:00:33 +03:00
|
|
|
with:
|
2022-03-31 22:23:34 +03:00
|
|
|
java-version: 11
|
|
|
|
distribution: liberica
|
2021-07-16 21:12:14 +03:00
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.gradle/caches
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gradle-
|
2021-07-29 19:55:27 +03:00
|
|
|
- run: ./gradlew dokkaHtmlMultiModule --build-cache --no-daemon --no-parallel --stacktrace
|
2021-07-16 21:12:14 +03:00
|
|
|
- uses: JamesIves/github-pages-deploy-action@4.1.0
|
2021-03-12 16:00:33 +03:00
|
|
|
with:
|
2021-03-12 20:30:14 +03:00
|
|
|
branch: gh-pages
|
|
|
|
folder: build/dokka/htmlMultiModule
|