Skip to content

Commit

Permalink
Credential Setup for release
Browse files Browse the repository at this point in the history
  • Loading branch information
thelordoflite committed Jun 5, 2021
1 parent d4e75be commit 1ed4038
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ freeline_project_description.json

# Temporary files
*.DS_Store

# Github configuration file (sdk path, etc)
github.properties
7 changes: 5 additions & 2 deletions killerbee/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ def LIB_GROUP_ID = 'com.adonmo.libraries'
def LIB_ARTIFACT_ID = 'killerbee'
def LIB_VERSION = '1.0.0'

def githubProperties = new Properties()
githubProperties.load(new FileInputStream(rootProject.file("github.properties")))

task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier "sources"
Expand All @@ -16,8 +19,8 @@ publishing {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/adonmo/killerbee")
credentials {
username = System.getenv('GITHUB_USER') ?: project.properties['GITHUB_USER']
password = System.getenv('GITHUB_PERSONAL_ACCESS_TOKEN') ?: project.properties['GITHUB_PERSONAL_ACCESS_TOKEN']
username = githubProperties['GITHUB_USER']
password = githubProperties['GITHUB_PERSONAL_ACCESS_TOKEN']
}
}
maven {
Expand Down

0 comments on commit 1ed4038

Please sign in to comment.