|
5 | 5 | # - Build natives for android
|
6 | 6 | # - Merge the natives, build the engine, create the zip release, maven artifacts, javadoc and native snapshot
|
7 | 7 | # - (only when native code changes) Deploy the natives snapshot to the MinIO instance
|
8 |
| -# - (only when building a release) Deploy everything else to github releases, github packet registry and bintray |
| 8 | +# - (only when building a release) Deploy everything else to github releases, github packet registry, Bintray, and Sonatype |
9 | 9 | # - (only when building a release) Update javadoc.jmonkeyengine.org
|
10 | 10 | # Note:
|
11 | 11 | # All the actions/upload-artifact and actions/download-artifact steps are used to pass
|
|
22 | 22 | # BINTRAY_LICENSE="BSD 3-Clause"
|
23 | 23 | # >> Configure MINIO NATIVES SNAPSHOT
|
24 | 24 | # OBJECTS_KEY=XXXXXX
|
| 25 | +# >> Configure SONATYPE RELEASE |
| 26 | +# OSSRH_PASSWORD=XXXXXX |
| 27 | +# OSSRH_USERNAME=XXXXXX |
25 | 28 | # >> Configure SIGNING
|
26 | 29 | # SIGNING_KEY=XXXXXX
|
27 | 30 | # SIGNING_PASSWORD=XXXXXX
|
@@ -319,9 +322,23 @@ jobs:
|
319 | 322 | uses: actions/download-artifact@master
|
320 | 323 | with:
|
321 | 324 | name: release
|
322 |
| - path: dist/release |
323 |
| - |
324 |
| - - name: Deploy to github releases |
| 325 | + path: dist/release |
| 326 | + |
| 327 | + - name: Deploy the maven artifacts to Sonatype OSSRH |
| 328 | + run: | |
| 329 | + if [ "${{ secrets.OSSRH_PASSWORD }}" = "" ]; |
| 330 | + then |
| 331 | + echo "Configure the following secrets to enable deployment to Sonatype:" |
| 332 | + echo "OSSRH_PASSWORD, OSSRH_USERNAME" |
| 333 | + else |
| 334 | + ./gradlew publishMavenPublicationToOSSRHRepository \ |
| 335 | + -PossrhPassword=${{ secrets.OSSRH_PASSWORD }} \ |
| 336 | + -PossrhUsername=${{ secrets.OSSRH_USERNAME }} \ |
| 337 | + -PskipPrebuildLibraries=true -PuseCommitHashAsVersionName=true \ |
| 338 | + --console=plain --stacktrace |
| 339 | + fi |
| 340 | +
|
| 341 | + - name: Deploy to GitHub Releases |
325 | 342 | run: |
|
326 | 343 | # We need to get the release id (yeah, it's not the same as the tag)
|
327 | 344 | echo "${GITHUB_EVENT_PATH}"
|
|
0 commit comments