Skip to content

Commit 2fcf43d

Browse files
committed
Add GitHub action for Dokka documentation
1 parent 9d8f40a commit 2fcf43d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/dokka-publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Dokka Documentation
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-and-publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Set up JDK
18+
uses: actions/setup-java@v2
19+
with:
20+
distribution: 'temurin'
21+
java-version: '11'
22+
23+
- name: Generate Dokka HTML documentation
24+
run: ./gradlew dokkaHtml
25+
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./build/dokka/html
31+
publish_branch: gh-pages

0 commit comments

Comments
 (0)