File tree Expand file tree Collapse file tree 3 files changed +66
-0
lines changed Expand file tree Collapse file tree 3 files changed +66
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish documentation
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ workflow_dispatch :
7
+
8
+ permissions :
9
+ contents : read
10
+ pages : write
11
+ id-token : write
12
+
13
+ concurrency :
14
+ group : " pages"
15
+ cancel-in-progress : false
16
+
17
+ jobs :
18
+ deploy :
19
+ runs-on : ubuntu-latest
20
+
21
+ environment :
22
+ name : github-pages
23
+ url : ${{ steps.deployment.outputs.page_url }}
24
+
25
+ steps :
26
+ - name : Checkout
27
+ uses : actions/checkout@v5
28
+
29
+ - name : Set up JDK
30
+ uses : actions/setup-java@v5
31
+ with :
32
+ java-version : " 21"
33
+ distribution : " corretto"
34
+
35
+ - name : Setup Gradle
36
+ uses : gradle/actions/setup-gradle@v4
37
+
38
+ - name : Setup Pages
39
+ uses : actions/configure-pages@v5
40
+
41
+ - name : Generate documentation
42
+ run : |
43
+ ./gradlew :dokkaGenerate \
44
+ -Pgpr.user=${{ github.repository_owner }} \
45
+ -Pgpr.token=${{ secrets.GITHUB_TOKEN }}
46
+
47
+ - name : Upload artifact
48
+ uses : actions/upload-pages-artifact@v3
49
+ with :
50
+ path : ./docs
51
+
52
+ - name : Deploy to GitHub Pages
53
+ id : deployment
54
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 2
2
.idea /
3
3
.kotlin /
4
4
build /
5
+ docs /
5
6
.DS_Store
6
7
local.properties
Original file line number Diff line number Diff line change @@ -2,3 +2,14 @@ plugins {
2
2
`kotlin- dsl` apply false
3
3
id(" io.technoirlab.conventions.root" )
4
4
}
5
+
6
+ dependencies {
7
+ dokka(project(" :common-conventions" ))
8
+ dokka(project(" :gradle-plugin-conventions" ))
9
+ dokka(project(" :jvm-conventions" ))
10
+ dokka(project(" :kotlin-multiplatform-conventions" ))
11
+ dokka(project(" :root-conventions" ))
12
+ dokka(project(" :settings-conventions" ))
13
+ dokka(project(" :libraries:gradle-extensions" ))
14
+ dokka(project(" :libraries:gradle-test-kit" ))
15
+ }
You can’t perform that action at this time.
0 commit comments