-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (25 loc) · 788 Bytes
/
docs.yml
File metadata and controls
32 lines (25 loc) · 788 Bytes
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
name: Deploy Docs
on:
push:
branches: [main]
jobs:
deploy:
if: contains(github.event.head_commit.message, 'chore(main)') || contains(github.event.head_commit.message, 'docs(')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Make Gradle wrapper executable
run: chmod +x ./gradlew
- name: Generate Dokka HTML
run: ./gradlew dokkaGeneratePublicationHtml
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/dokka/html
publish_branch: gh-pages