Skip to content

Commit

Permalink
Kotlin Publish Docs Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonDev07 committed Sep 23, 2024
1 parent 6c5bd6d commit b30b417
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy_doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy Dokka to GitHub Pages

on:
push:
branches: [ master ]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'

- name: Install dependencies
run: ./gradlew build

- name: Generate Dokka documentation
run: ./gradlew dokkaHtml

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/dokka/html

0 comments on commit b30b417

Please sign in to comment.