blob: ce1caf3558f41b23e6ba14ee80d89078f43a66ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
name: Deploy developer docs to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'docs-developer/**'
release:
types: [ published ]
jobs:
docs:
if: github.repository == 'Kotlin/dokka'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: dokka
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
cache: 'maven'
- uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
- name: Get current Dokka version
run: echo "DOKKA_VERSION=`./gradlew :properties | grep '^version:.*' | cut -d ' ' -f 2`" >> $GITHUB_ENV
working-directory: ./dokka
- name: Build docs
run: ./gradlew mkdocsBuild -Pdokka_version=$DOKKA_VERSION --info
working-directory: ./dokka
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dokka/docs-developer/build/mkdocs
keep_files: true
full_commit_message: Publish ${{ env.DOKKA_VERSION }} documentation
|