link dokka to github and make builds concurrent

This commit is contained in:
Cloudburst 2022-09-18 14:06:48 +02:00
parent 2f44c97b86
commit 9bbe3d65d2
3 changed files with 86 additions and 70 deletions

View file

@ -43,9 +43,7 @@ jobs:
echo "::set-output name=key_pwd::$KEY_PWD" echo "::set-output name=key_pwd::$KEY_PWD"
- name: Run Gradle - name: Run Gradle
run: | run: |
./gradlew assemblePrerelease ./gradlew assemblePrerelease makeJar androidSourcesJar
./gradlew androidSourcesJar
./gradlew makeJar
env: env:
SIGNING_KEY_ALIAS: "key0" SIGNING_KEY_ALIAS: "key0"
SIGNING_KEY_PASSWORD: ${{ steps.fetch_keystore.outputs.key_pwd }} SIGNING_KEY_PASSWORD: ${{ steps.fetch_keystore.outputs.key_pwd }}

View file

@ -206,10 +206,28 @@ task androidSourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs//full sources from android.sourceSets.main.java.srcDirs//full sources
} }
// this is used by the gradlew plugin
task makeJar(type: Copy) { task makeJar(type: Copy) {
// after modifying here, you can export. Jar
from('build/intermediates/compile_app_classes_jar/debug') from('build/intermediates/compile_app_classes_jar/debug')
into('build') // output location into('build')
include('classes.jar') // the classes file of the imported rack package include('classes.jar')
dependsOn build dependsOn('build')
}
dokkaHtml {
moduleName.set("Cloudstream")
dokkaSourceSets {
main {
sourceLink {
// Unix based directory relative path to the root of the project (where you execute gradle respectively).
localDirectory.set(file("src/main/java"))
// URL showing where the source code can be accessed through the web browser
remoteUrl.set(new URL(
"https://github.com/recloudstream/cloudstream/tree/master/app/src/main/java"))
// Suffix which is used to append the line number to the URL. Use #L for GitHub
remoteLineSuffix.set("#L")
}
}
}
} }