This commit is contained in:
InsanusMokrassar 2021-03-17 21:38:23 +06:00
parent 19afa7c5aa
commit 0be1c82d6f
3 changed files with 19 additions and 6 deletions

View File

@ -14,3 +14,6 @@ jobs:
java-version: 1.8 java-version: 1.8
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew build run: ./gradlew build
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -23,6 +23,16 @@ repositories {
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()
jcenter() jcenter()
if ((project.hasProperty("GITHUB_USER") || System.getenv("GITHUB_USER") != null) && (project.hasProperty("GITHUB_TOKEN") || System.getenv("GITHUB_TOKEN") != null)) {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/InsanusMokrassar/TelegramBotApiLibraries")
credentials {
username = project.hasProperty("GITHUB_USER") ? project.getProperty("GITHUB_USER") : System.getenv("GITHUB_USER")
password = project.hasProperty("GITHUB_TOKEN") ? project.getProperty("GITHUB_TOKEN") : System.getenv("GITHUB_TOKEN")
}
}
}
} }
dependencies { dependencies {

View File

@ -4,13 +4,13 @@ org.gradle.parallel=true
kotlin.js.generate.externals=true kotlin.js.generate.externals=true
kotlin.incremental=true kotlin.incremental=true
kotlin_version=1.4.30 kotlin_version=1.4.31
kotlin_coroutines_version=1.4.2 kotlin_coroutines_version=1.4.3
kotlin_serialisation_runtime_version=1.1.0 kotlin_serialisation_runtime_version=1.1.0
plagubot_version=0.1.4 plagubot_version=0.1.5
micro_utils_version=0.4.27 micro_utils_version=0.4.30
tgbotapi_libraries_version=0.0.1 tgbotapi_libraries_version=0.0.2-branch_master-build11
project_group=dev.inmo project_group=dev.inmo
project_version=0.1.4 project_version=0.1.5