Skip to content

Merge pull request #1925 from Adyen/develop #31

Merge pull request #1925 from Adyen/develop

Merge pull request #1925 from Adyen/develop #31

Workflow file for this run

name: Publish Docs
# Every time we merge to the main branch we publish the docs.
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
publish-to-github-pages:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v4
# Setup Java 17
# https://github.com/marketplace/actions/setup-java-jdk
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Gradle cache
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: true
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# Generate kdocs
- name: Generate Dokka HTML documentation
run: ./gradlew dokkaHtmlMultiModule
# Deploy to GitHub Pages
- name: Deploy GitHub Pages
uses: JamesIves/[email protected]
with:
BRANCH: gh-pages
FOLDER: build/docs/