File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 2222# BINTRAY_LICENSE="BSD 3-Clause"
2323# >> Configure MINIO NATIVES SNAPSHOT
2424# OBJECTS_KEY=XXXXXX
25+ # >> Configure SIGNING
26+ # SIGNING_KEY=XXXXXX
27+ # SIGNING_PASSWORD=XXXXXX
2528# >> Configure PACKAGE REGISTRY RELEASE
2629# Nothing to do here, everything is autoconfigured to work with the account/org that
2730# is running the build.
@@ -145,9 +148,22 @@ jobs:
145148 mkdir -p ./dist/release/
146149 mv build/distributions/*.zip dist/release/
147150
148- # Create the maven artifacts
149- mkdir -p ./dist/maven/
150- ./gradlew -PuseCommitHashAsVersionName=true -PskipPrebuildLibraries=true install -Dmaven.repo.local="$PWD/dist/maven"
151+ # Install maven artifacts to ./dist/maven and sign them if possible
152+ if [ "${{ secrets.SIGNING_PASSWORD }}" = "" ];
153+ then
154+ echo "Configure the following secrets to enable signing:"
155+ echo "SIGNING_KEY, SIGNING_PASSWORD"
156+
157+ ./gradlew publishMavenPublicationToDistRepository \
158+ -PskipPrebuildLibraries=true -PuseCommitHashAsVersionName=true \
159+ --console=plain --stacktrace
160+ else
161+ ./gradlew publishMavenPublicationToDistRepository \
162+ -PsigningKey='${{ secrets.SIGNING_KEY }}' \
163+ -PsigningPassword='${{ secrets.SIGNING_PASSWORD }}' \
164+ -PskipPrebuildLibraries=true -PuseCommitHashAsVersionName=true \
165+ --console=plain --stacktrace
166+ fi
151167
152168 # Zip the natives into a single archive (we are going to use this to deploy native snapshots)
153169 echo "Create native zip"
You can’t perform that action at this time.
0 commit comments