2021-08-07 10:07:40 +00:00
|
|
|
name: Publish KDocs
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
publishing:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-java@v1
|
|
|
|
with:
|
2022-02-27 14:47:10 +00:00
|
|
|
java-version: 11
|
2022-02-27 14:37:48 +00:00
|
|
|
- name: Fix android 32.0.0 dx
|
2021-09-23 07:22:27 +00:00
|
|
|
continue-on-error: true
|
2022-02-27 14:37:48 +00:00
|
|
|
run: cd /usr/local/lib/android/sdk/build-tools/32.0.0/ && cp d8 dx && cd lib && cp d8.jar dx.jar
|
2021-08-07 10:07:40 +00:00
|
|
|
- name: Build
|
|
|
|
run: ./gradlew dokkaHtml
|
|
|
|
- name: Publish KDocs
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2021-08-07 10:26:06 +00:00
|
|
|
publish_dir: ./build/dokka/html
|
2021-08-07 10:07:40 +00:00
|
|
|
publish_branch: kdocs
|