Skip to content

Commit 65918ef

Browse files
committed
ci: added docs workflow
1 parent 9986d92 commit 65918ef

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/docs.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Publish Docs
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+.0' # New Major or Minor Releases
7+
jobs:
8+
docs:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Project
12+
uses: actions/checkout@v3
13+
- name: Set up JDK 11
14+
uses: actions/setup-java@v3
15+
with:
16+
distribution: 'temurin'
17+
java-version: '11'
18+
- name: Use tag as version
19+
run: echo "${GITHUB_REF#refs/*/}" > version.txt
20+
- name: Generate Docs with Dokka
21+
run: ./gradlew dokkaHtmlMultiModule
22+
- name: Publish to GitHub Pages
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: build/dokka
27+
keep_files: true

0 commit comments

Comments
 (0)