Skip to content

gh-pages-android-api #14

gh-pages-android-api

gh-pages-android-api #14

name: gh-pages-android-api
on:
workflow_dispatch:
jobs:
gh-pages-android-api:
defaults:
run:
working-directory: platform/android
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
- name: Generate documentation
run: ./gradlew dokkaHtml
- name: Get version
run: echo version="$(git describe --tags --match='android-v*.*.*' --abbrev=0 | cut -c 10-)" >> "$GITHUB_ENV"
- name: Deploy (latest) 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: platform/android/MapLibreAndroid/build/dokka/html
target-folder: android/api/latest/
- name: Deploy (${{ env.app_url }}) 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: platform/android/MapLibreAndroid/build/dokka/html
target-folder: android/api/${{ env.version }}/