Merge pull request #22 from lpicanco/dependabot/gradle/jvm-1.9.21 #25
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: docs | |
on: | |
push: | |
branches: [ "master" ] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Install MkDocs and Material theme | |
run: | | |
python -m pip install --upgrade pip | |
pip install mkdocs mkdocs-material | |
- name: Build MkDocs site | |
run: | | |
mkdir docs | |
cp README.md docs | |
mkdocs build | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Build docs with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: --no-daemon dokkaHtmlMultiModule | |
- name: Copy Dokka documentation to MkDocs site | |
run: | | |
mkdir -p site/api | |
cp -r build/dokkaHtmlMultiModule/* site/api/ | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: site |