Skip to content

Commit

Permalink
add create docs task
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisives committed Nov 3, 2023
1 parent 0dffa73 commit bb128dd
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/create-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Create docs

on:
push:
branches:
- main
- v2

jobs:
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
cache: gradle
- name: Create docs
run: ./gradlew :hmkit-fleet:dokkaHtml

- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
BRANCH: gh-pages
FOLDER: hmkit-fleet/build/dokka/html

0 comments on commit bb128dd

Please sign in to comment.