This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
chore(deps): update plugin org.jetbrains.kotlin.plugin.serialization … #346
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 | |
on: [push] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
java-version: | |
- 8 | |
- 11 | |
- 17 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'adopt' | |
- name: Run tests | |
run: ./gradlew check | |
dokka: | |
needs: [test] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repository (master) | |
uses: actions/checkout@v4 | |
- name: Clone Repository (gh-pages) | |
run: git clone https://github.com/${{ github.repository }} -b gh-pages --depth 1 dokka || mkdir dokka | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
cache: gradle | |
- name: Build | |
run: ./gradlew dokkaHtml | |
- name: Deploy to GitHub Pages | |
if: github.ref == 'refs/heads/master' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dokka |