Added sonatype releases credentials
This commit is contained in:
parent
32311785ea
commit
a415c9fd21
3 changed files with 9 additions and 6 deletions
2
.github/workflows/pages.yml
vendored
2
.github/workflows/pages.yml
vendored
|
@ -3,7 +3,7 @@ name: javadocs-pages
|
|||
on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push:
|
||||
branches: ["master"]
|
||||
branches: [ "master" ]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
|
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
|
@ -3,7 +3,7 @@ name: Publish to the Maven Central
|
|||
on:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types: [released]
|
||||
types: [ released ]
|
||||
|
||||
jobs:
|
||||
build-bld-project:
|
||||
|
@ -33,4 +33,6 @@ jobs:
|
|||
-DtestsBadgeUrl=https://rife2.com/tests-badge/update/com.uwyn.rife2/rife2-renderers
|
||||
-DtestsBadgeApiKey=${{ secrets.TESTS_BADGE_API_KEY }}
|
||||
-Drife2Username=${{ secrets.RIFE2_USERNAME }}
|
||||
-Drife2Password=${{ secrets.RIFE2_PASSWORD }}
|
||||
-Drife2Password=${{ secrets.RIFE2_PASSWORD }}
|
||||
-DsonatypeUser=${{ secrets.SONATYPE_USER }}
|
||||
-DsonatypePassword=${{ secrets.SONATYPE_PASSWORD }}
|
|
@ -27,11 +27,12 @@ public class TemplateRenderersBuild extends Project {
|
|||
.link("https://rife2.github.io/rife2/");
|
||||
|
||||
publishOperation()
|
||||
.repository(version.isSnapshot() ? repository("https://repo.rife2.com/snapshots")
|
||||
.repository(version.isSnapshot() ? repository(RIFE2_SNAPSHOTS.location())
|
||||
.withCredentials(property("rife2Username"), property("rife2Password"))
|
||||
: repository("https://repo.rife2.com/releases")
|
||||
: repository(RIFE2_RELEASES.location())
|
||||
.withCredentials(property("rife2Username"), property("rife2Password")))
|
||||
.repository(MAVEN_CENTRAL)
|
||||
.repository(repository(SONATYPE_RELEASES.location())
|
||||
.withCredentials(property("sonatypeUser"), property("sonatypePassword")))
|
||||
.info(new PublishInfo()
|
||||
.groupId("com.uwyn.rife2")
|
||||
.artifactId("rife2-renderers")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue