File tree 1 file changed +19
-3
lines changed
1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 22
22
# BINTRAY_LICENSE="BSD 3-Clause"
23
23
# >> Configure MINIO NATIVES SNAPSHOT
24
24
# OBJECTS_KEY=XXXXXX
25
+ # >> Configure SIGNING
26
+ # SIGNING_KEY=XXXXXX
27
+ # SIGNING_PASSWORD=XXXXXX
25
28
# >> Configure PACKAGE REGISTRY RELEASE
26
29
# Nothing to do here, everything is autoconfigured to work with the account/org that
27
30
# is running the build.
@@ -145,9 +148,22 @@ jobs:
145
148
mkdir -p ./dist/release/
146
149
mv build/distributions/*.zip dist/release/
147
150
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
151
167
152
168
# Zip the natives into a single archive (we are going to use this to deploy native snapshots)
153
169
echo "Create native zip"
You can’t perform that action at this time.
0 commit comments