Skip to content

Upgrade Kotlin 1.9.10 and Gradle 8.3 (#22) #4

Upgrade Kotlin 1.9.10 and Gradle 8.3 (#22)

Upgrade Kotlin 1.9.10 and Gradle 8.3 (#22) #4

Workflow file for this run

name: Publish Dokka HTML to GitHub Pages
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Generate Dokka HTML
run: ./gradlew :ccp:dokkaHtml --no-configuration-cache
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./ccp/build/dokka/html
deploy:
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action