Skip to content

Merge pull request #1416 from Adyen/develop #23

Merge pull request #1416 from Adyen/develop

Merge pull request #1416 from Adyen/develop #23

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@v3
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.4.3
with:
BRANCH: gh-pages
FOLDER: build/docs/