Skip to content

Commit

Permalink
Publish to maven central (#9)
Browse files Browse the repository at this point in the history
* Publish to maven central

* Revert unwanted publication removal
  • Loading branch information
w4ll3 authored Mar 1, 2024
1 parent 5547f30 commit 7635591
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,7 @@ jobs:
arguments: publish
build-root-directory: ./kotlin
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.event.inputs.version }}
1 change: 1 addition & 0 deletions kotlin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ walletsdkrs/src
build
kls_database.db
*.hprof
local.properties
11 changes: 10 additions & 1 deletion kotlin/walletsdkrs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ android {
}

dependencies {

implementation 'androidx.appcompat:appcompat:1.6.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
Expand Down Expand Up @@ -104,6 +103,16 @@ publishing {
password = System.getenv("GITHUB_TOKEN")
}
}
repositories {
maven {
name = "OSSRH"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_TOKEN")
}
}
}
}
publications {
release(MavenPublication) {
Expand Down

0 comments on commit 7635591

Please sign in to comment.