Merge pull request #880 from modelix/dependabot/gradle/com.squareup-k… #74
Workflow file for this run
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: Build and Publish Docs | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.0' # New Major or Minor Releases | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Use tag as version | |
run: echo "${GITHUB_REF#refs/*/}" > version.txt | |
- name: Checkout Old Docs Versions for Index Page | |
uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
path: build/dokka | |
- name: Generate Docs with Dokka | |
run: ./gradlew :dokkaHtmlMultiModule | |
- name: Publish to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: build/dokka | |
cname: api.modelix.org |