Skip to content

Commit

Permalink
Create dokka.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram-- committed Mar 7, 2024
1 parent ce634c2 commit bb4597d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/dokka.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Docs

on:
push:
branches:
- main
- release

jobs:
build:
name: docs
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
id-token: write
pages: write
pull-requests: write
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '17'
- name: Run build
run: |
./gradlew clean build
- name: Generate API documentation
if: ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request' }}
run: |
./gradlew dokkaHtml
- name: Deploy API documentation to Github Pages
if: ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build/dokka/html
target-folder: docs

0 comments on commit bb4597d

Please sign in to comment.