Apply dokka for the library modules only #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ReleaseDocs | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
publish_dokka: | |
name: Dokka docs | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
with: | |
ref: main | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Generate Dokka HTML docs | |
run: ./gradlew dokkaHtmlMultimodule | |
- name: Deploy to GitHub pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.DOCUSAURUS_GH_TOKEN }} | |
publish_dir: ./build/dokka/htmlMultiModule | |
publish_branch: gh-pages |