Skip to content

Documentation fixes (#129) #197

Documentation fixes (#129)

Documentation fixes (#129) #197

Workflow file for this run

on:
push:
branches: [ master ]
concurrency:
group: "docs"
cancel-in-progress: true
permissions:
contents: read
pages: write
id-token: write
jobs:
docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
check-latest: true
java-version: 22
cache: 'gradle'
- name: Validate gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Create local properties
env:
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
run: echo "$LOCAL_PROPERTIES" | base64 --decode > local.properties
- name: Cache konan directory
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('*.gradle.kts', 'buildSrc/*') }}
restore-keys: |
${{ runner.os }}-konan-
- uses: actions/setup-node@v4
with:
node-version: 23
cache: npm
cache-dependency-path: './docs/package-lock.json'
- name: Update docs/README.md
run: |
chmod -R +x ./scripts
./scripts/update_readme.sh
- name: Install docs deps
run: cd docs && npm ci
- name: Build website
run: cd docs && npm run build
- name: Generate docs
run: ./gradlew dokkaGenerate
- name: Make javadoc dir
run: mkdir -p ./docs/build/javadocs
- name: Move docs to the parent docs dir
run: cp -r ./build/dokka/html/ ./docs/build/javadocs/
- name: Create sample app distributable
run: ./gradlew wasmJsBrowserDistribution --no-configuration-cache
- name: Move assembled sample app to docs folder
run: cp -r ./sample/build/dist/wasmJs/productionExecutable/ ./docs/build/sample/
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload pages
uses: actions/upload-pages-artifact@v3
with:
path: './docs/build/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4