-
-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (33 loc) · 1007 Bytes
/
gradle-dokka.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
name: gradle-dokka
on:
push:
branches: [ develop ]
env:
CI: true
jobs:
gradle-dokka:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Generate docs with dokka
run: ./gradlew dokkaHtmlMultiModule
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: docs # The branch the action should deploy to.
folder: dokka-docs # The folder the action should deploy.
token: ${{ steps.app-token.outputs.token }}