Skip to content

Commit

Permalink
Adds deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhE committed Jul 9, 2024
1 parent e6baf81 commit 20d8bbb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish docs to Github Pages

on:
push:
branches:
- main

jobs:
publish-docs:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Cache Gradle Wrapper
uses: actions/cache@v3
with:
path: |
~/.gradle/wrapper
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3

- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '18'
cache: gradle

- name: Build Dokka HTML
run: ./gradlew dokkaHtmlMultiModule

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

0 comments on commit 20d8bbb

Please sign in to comment.