Skip to content

Commit 49d4f91

Browse files
committed
ci: add java setup step in docs deployment
1 parent f7e82c8 commit 49d4f91

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,19 @@ jobs:
1717
- uses: actions/setup-python@v5
1818
with:
1919
python-version: 3.x
20+
- name: Setup Java
21+
uses: actions/setup-java@v1
22+
with:
23+
java-version: 17
2024
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
21-
- run: |
22-
./gradlew dokkaHtmlMultiModule
23-
mv build/dokka/htmlMultiModule docs/api
2425
- uses: actions/cache@v4
2526
with:
2627
key: mkdocs-material-${{ env.cache_id }}
2728
path: .cache
2829
restore-keys: |
2930
mkdocs-material-
31+
- run: |
32+
./gradlew dokkaHtmlMultiModule
33+
mv build/dokka/htmlMultiModule docs/api
3034
- run: pip install mkdocs-material
3135
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)