Merge pull request #253 from rubensousa/1.4.0-alpha03 #49
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: Publish docs | |
on: | |
push: | |
paths: | |
- 'docs/**' | |
- 'mkdocs.yml' | |
- '.github/workflows/docs.yml' | |
- '.github/workflows/docs_pr.yml' | |
branches: | |
- 'master' | |
jobs: | |
build: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Build docs | |
run: | | |
./gradlew dokkaHtmlMultiModule | |
mv ./build/dokka/htmlMultiModule docs/api | |
- name: Install dependencies | |
run: | | |
pip install mkdocs-material mkdocs-material-extensions mkdocs-markdownextradata-plugin | |
- name: Deploy docs | |
run: mkdocs gh-deploy --force |