diff --git a/.github/workflows/create-docs.yml b/.github/workflows/create-docs.yml new file mode 100644 index 0000000..3374f6e --- /dev/null +++ b/.github/workflows/create-docs.yml @@ -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 \ No newline at end of file