Skip to content

Commit

Permalink
ci: add java setup step in docs deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
levinzonr committed Feb 22, 2024
1 parent f7e82c8 commit 49d4f91
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 17
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- run: |
./gradlew dokkaHtmlMultiModule
mv build/dokka/htmlMultiModule docs/api
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: |
./gradlew dokkaHtmlMultiModule
mv build/dokka/htmlMultiModule docs/api
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force

0 comments on commit 49d4f91

Please sign in to comment.