release v2.1.1-SNAPSHOT ... #57
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: Docs Publish | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: write | |
jobs: | |
deploy-gh-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: zulu | |
- name: Cache Konan | |
uses: ./.github/actions/cache-konan | |
- name: Cache Gradle | |
uses: ./.github/actions/cache-gradle | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
shell: bash | |
- name: Generate GraphQL Client | |
run: ./gradlew graphqlGenerateClient | |
shell: bash | |
- name: Generate HTML docs | |
run: ./gradlew dokkaHtml | |
shell: bash | |
- name: Deploy docs to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4.6.3 | |
with: | |
branch: gh-pages | |
folder: lib/build/dokka |