Merge pull request #1416 from Adyen/develop #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |