Skip to content

Commit

Permalink
add: publish :core:util and :provider:base to jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
rhenwinch committed Feb 10, 2024
1 parent 8b55566 commit 929a32f
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Start Jitpack

# Controls when the workflow will run
on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: js6pak/start-jitpack@master
19 changes: 19 additions & 0 deletions core/util/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
alias(libs.plugins.flixclusive.library)
alias(libs.plugins.flixclusive.hilt)
alias(libs.plugins.flixclusive.compose)
id("maven-publish")
}

android {
Expand All @@ -17,4 +18,22 @@ dependencies {
implementation(libs.jsoup)
implementation(libs.okhttp.dnsoverhttps)
implementation(libs.retrofit)
}

publishing {
repositories {
mavenLocal()

val token = System.getenv("GITHUB_TOKEN")

if (token != null) {
maven {
credentials {
username = "Flixclusive"
password = token
}
setUrl("https://maven.pkg.github.com/Flixclusive/app")
}
}
}
}
20 changes: 19 additions & 1 deletion provider/base/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.flixclusive.library)
alias(libs.plugins.flixclusive.testing)
id("maven-publish")
}

android {
Expand All @@ -14,8 +15,25 @@ dependencies {
api(projects.core.util)
api(projects.extractor.base)

implementation(projects.model.provider)
implementation(libs.coroutines.test)
implementation(libs.junit)
implementation(libs.mockk)
}

publishing {
repositories {
mavenLocal()

val token = System.getenv("GITHUB_TOKEN")

if (token != null) {
maven {
credentials {
username = "Flixclusive"
password = token
}
setUrl("https://maven.pkg.github.com/Flixclusive/app")
}
}
}
}

0 comments on commit 929a32f

Please sign in to comment.