Skip to content

Merge pull request #256 from mubashirpa/master #3

Merge pull request #256 from mubashirpa/master

Merge pull request #256 from mubashirpa/master #3

Workflow file for this run

name: Build and publish dokka
on:
push:
branches: ["master"]
jobs:
build:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build dokka
run: ./gradlew dokkaHtmlMultiModule
shell: bash
- name: Move dokka results
run: mv build/dokka/htmlMultiModule public
shell: bash
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./public
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2