Skip to content

Merge pull request #5 from aseemsavio/github-workflow #1

Merge pull request #5 from aseemsavio/github-workflow

Merge pull request #5 from aseemsavio/github-workflow #1

name: Publish Dokka HTML to GitHub Pages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
- name: Build Dokka HTML
run: ./gradlew dokkaHtml
- name: Move Dokka HTML to Docs Directory
run: |
mkdir -p docs
mv build/dokka/html/* docs/
if: success()
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs