Skip to content

Commit 4b5648a

Browse files
Merge pull request #5 from Palbahngmiyine/main
Update build-docs.yaml
2 parents 4f389f9 + 766fbc8 commit 4b5648a

2 files changed

Lines changed: 26 additions & 19 deletions

File tree

.github/workflows/build-docs-dispatch.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,21 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v4
20+
21+
- name: Set up JDK 21
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: 21
25+
distribution: temurin
26+
27+
- name: Setup Gradle
28+
uses: gradle/actions/setup-gradle@v4
29+
2030
- name: Setup Pages
2131
uses: actions/configure-pages@v5
22-
- name: Enable Dokka V2 in gradle.properties
23-
env:
24-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
25-
PLUGIN_MODE_V2: V2Enabled
26-
run: |
27-
echo "org.jetbrains.dokka.experimental.gradle.pluginMode=${PLUGIN_MODE_V2}" > ./gradle.properties
28-
- name: Build
29-
run: |
30-
sh ./gradlew dokkaGeneratePublicationHtml
32+
33+
- name: Generate Documentation
34+
run: ./gradlew dokkaGeneratePublicationHtml
3135
- name: Upload docs artifact
3236
uses: actions/upload-pages-artifact@v4
3337
with:

.github/workflows/build-docs.yaml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Build SDK References Documents
33
on:
44
release:
55
types: [published]
6-
branches: [ main ]
76

87
permissions:
98
contents: read
@@ -19,17 +18,21 @@ jobs:
1918
steps:
2019
- name: Checkout
2120
uses: actions/checkout@v4
21+
22+
- name: Set up JDK 21
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: 21
26+
distribution: temurin
27+
28+
- name: Setup Gradle
29+
uses: gradle/actions/setup-gradle@v4
30+
2231
- name: Setup Pages
2332
uses: actions/configure-pages@v5
24-
- name: Enable Dokka V2 in gradle.properties
25-
env:
26-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
27-
PLUGIN_MODE_V2: V2Enabled
28-
run: |
29-
echo "org.jetbrains.dokka.experimental.gradle.pluginMode=${PLUGIN_MODE_V2}" > ./gradle.properties
30-
- name: Build
31-
run: |
32-
sh ./gradlew dokkaGeneratePublicationHtml
33+
34+
- name: Generate Documentation
35+
run: ./gradlew dokkaGeneratePublicationHtml
3336
- name: Upload docs artifact
3437
uses: actions/upload-pages-artifact@v4
3538
with:

0 commit comments

Comments
 (0)