Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Bump org.jetbrains.dokka:kotlin-as-java-plugin from 1.9.10 to 1.9.20 … #409

Bump org.jetbrains.dokka:kotlin-as-java-plugin from 1.9.10 to 1.9.20 …

Bump org.jetbrains.dokka:kotlin-as-java-plugin from 1.9.10 to 1.9.20 … #409

Workflow file for this run

name: Deploy static content to Pages
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build-javadoc:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Build JavaDoc using Dokka
run: |
mkdir ./javadoc
./gradlew :TeamCode:dokkaHtml --no-daemon
mv ./TeamCode/build/dokka/html ./javadoc
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
path: ./javadoc/html
name: javadoc
build-controldoc:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Build APK with Gradle
run: ./gradlew assembleDebug --scan --stacktrace --info --no-daemon -x test
- name: Build ControlDoc
run: |
chmod +x ./buildControlDoc.sh
./buildControlDoc.sh TeamCode/build/outputs/apk/debug/TeamCode-debug.apk
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: controldoc
path: doc-out/
deploy:
needs:
- build-javadoc
- build-controldoc
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Only allow one concurrent deployment
concurrency:
group: pages-deploy
cancel-in-progress: false
steps:
- name: Get build artifact (javadoc)
uses: actions/download-artifact@v4
with:
name: javadoc
path: javadoc
- name: Get build artifact (controldoc)
uses: actions/download-artifact@v4
with:
name: controldoc
path: controldoc
- name: Move controldoc to javadoc
run: |
mv controldoc javadoc/controls
- name: Upload Pages build artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./javadoc
retention-days: 90
- name: Configure Pages
uses: actions/configure-pages@v4
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4