Skip to content

Merge pull request #1511 from Adyen/develop #25

Merge pull request #1511 from Adyen/develop

Merge pull request #1511 from Adyen/develop #25

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
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# Generate kdocs
- name: Generate Dokka HTML documentation
run: ./gradlew dokkaHtmlMultiModule --no-daemon
# Deploy to GitHub Pages
- name: Deploy GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
BRANCH: gh-pages
FOLDER: build/docs/