Skip to content

Commit

Permalink
Add GitHub Actions to generate API document
Browse files Browse the repository at this point in the history
  • Loading branch information
orangain committed May 1, 2023
1 parent 2e960b2 commit b21ee09
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/document.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Document

on:
push:
tags:
- "**"
branches:
- main
- dokka

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build document with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: dokkaHtmlMultiModule
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/dokka/htmlMultiModule
destination_dir: ./${{ github.ref_name }}/api

0 comments on commit b21ee09

Please sign in to comment.