Skip to content

Commit

Permalink
publish API to my maven
Browse files Browse the repository at this point in the history
  • Loading branch information
KosmX committed Sep 13, 2021
1 parent f04009e commit 6ff00c5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ jobs:
CHANGELOG: ${{github.event.inputs.changelog}}
CURSEFORGE_TOKEN: ${{secrets.CURSEFORGE}}
MODRINTH_TOKEN: ${{secrets.MODRINTH}}
GH_TOKEN: ${{secrets.GH_TOKEN}}
GH_TOKEN: ${{secrets.GH_TOKEN}}
KOSMX_TOKEN: ${{secrets.KOSMX_TOKEN}}
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ if(keysExists) {
project.ext.keys.modrinth_token = ENV.MODRINTH_TOKEN
project.ext.keys.curseforge_key = ENV.CURSEFORGE_TOKEN
project.ext.keys.github_token = ENV.GH_TOKEN
project.ext.keys.kosmx_maven = ENV.KOSMX_TOKEN


task publishModrinth(type: TaskModrinthUpload) {
Expand Down Expand Up @@ -144,6 +145,8 @@ if(keysExists) {

finalizedBy(':16:publishToCF')
finalizedBy(':17:publishToCF')

finalizedBy(':emotesAPI:publish')

}
}
Expand Down
15 changes: 14 additions & 1 deletion emotesAPI/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,19 @@ publishing {
// select the repositories you want to publish to
repositories {
// uncomment to publish to the local maven
mavenLocal()
if (project.keysExists) {
repositories {
maven {
url = 'https://kosmx.duckdns.org/maven/'
credentials {
username = 'kosmx'
password = project.keys.kosmx_maven
}
}
}
}
else {
mavenLocal()
}
}
}

0 comments on commit 6ff00c5

Please sign in to comment.