add sources jar

This commit is contained in:
C10udburst 2022-08-05 17:55:29 +02:00
parent f90f91cea5
commit 8b4b1fd7fd
2 changed files with 9 additions and 1 deletions

View file

@ -39,7 +39,9 @@ jobs:
# mkdir -p "${TMP_KEYSTORE_FILE_PATH}"
# echo $ENCODED_STRING | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"/prerelease_keystore.keystore
- name: Run Gradle
run: ./gradlew app:assembleDebug
run: |
./gradlew app:assembleDebug
./gradlew app:androidSourcesJar
# env:
# SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
# SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
@ -53,3 +55,4 @@ jobs:
title: "Pre-release Build"
files: |
app/build/outputs/apk/debug/*.apk
app/build/libs/app-sources.jar

View file

@ -183,4 +183,9 @@ dependencies {
implementation 'com.github.TeamNewPipe:NewPipeExtractor:master-SNAPSHOT'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
}
task androidSourcesJar(type: Jar) {
getArchiveClassifier().set('sources')
from android.sourceSets.main.java.srcDirs//full sources
}