Skip to content

Commit

Permalink
Create a workflow to deploy Dokka documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Oct 29, 2024
1 parent 559d4c1 commit 9b370c4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deploy_dokka_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy Dokka documentation

on:
push:
branches:
- main
# TODO Remove before merging
pull_request:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write

jobs:
deploy-dokka-documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle; cp .github/gradle-ci.properties ~/.gradle/gradle.properties
- name: Build Dokka documentation
run: ./gradlew :dokkaGenerate
- name: Deploy Dokka documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/dokka/html
target-folder: api

0 comments on commit 9b370c4

Please sign in to comment.