-
Notifications
You must be signed in to change notification settings - Fork 82
38 lines (34 loc) · 1 KB
/
docs-ci.yml
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
# This workflow will build and deploy docs to GitHub Pages whenever something is pushed to the main branch
name: Docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
docs:
name: Build and deploy docs
runs-on: ubuntu-latest
concurrency: # Allow one concurrent deployment
group: pages
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build docs with Gradle
run: ./gradlew --stacktrace --info :dokkaGeneratePublicationHtml
- name: Deploy docs to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/dokka/html
branch: gh-pages
git-config-name: GitHub Actions
git-config-email: [email protected]
commit-message: Update docs