diff --git a/yukihookapi-ksp-xposed/build.gradle b/yukihookapi-ksp-xposed/build.gradle index 4c4881a7..1c5b80e6 100644 --- a/yukihookapi-ksp-xposed/build.gradle +++ b/yukihookapi-ksp-xposed/build.gradle @@ -2,6 +2,7 @@ plugins { id 'java-library' id 'org.jetbrains.kotlin.jvm' id 'com.google.devtools.ksp' version '1.6.10-1.0.2' + id 'maven-publish' } java { diff --git a/yukihookapi/build.gradle b/yukihookapi/build.gradle index 5731c2c0..ccf30cf5 100644 --- a/yukihookapi/build.gradle +++ b/yukihookapi/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java-library' id 'org.jetbrains.kotlin.jvm' + id 'maven-publish' } java { @@ -16,4 +17,17 @@ dependencies { compileOnly 'de.robv.android.xposed:api:82' compileOnly fileTree(include: ['android-stub.jar'], dir: 'libs') implementation 'androidx.annotation:annotation:1.3.0' +} + +publishing { + repositories { + maven { + name = "PublishGitHubPackages" + url = "https://maven.pkg.github.com/fankes/YukiHookAPI" + credentials { + username = System.getenv("GITHUB_ACTOR") + password = System.getenv("GITHUB_TOKEN") + } + } + } } \ No newline at end of file