@@ -103,10 +103,13 @@ jobs:
103
103
mvn -B verify -Pnative -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
104
104
popd
105
105
106
- # Create zip of samm-cli
107
- cd tools/samm-cli/target
106
+ # Create .tar.gz of samm-cli
107
+ pushd tools/samm-cli/target
108
108
chmod a+x samm
109
109
tar cfvz samm-cli-linux.tar.gz samm
110
+ popd
111
+ mv tools/samm-cli/target/samm-cli-linux.tar.gz .
112
+ mv tools/samm-cli/target/samm-cli-*.jar .
110
113
env :
111
114
PGP_KEY_PASSWORD : ${{ secrets.PGP_KEY_PASSWORD }}
112
115
@@ -116,8 +119,8 @@ jobs:
116
119
name : linux-artifacts
117
120
path : |
118
121
nexus-staging/
119
- tools/samm-cli/target/ samm-cli-linux.tar.gz
120
- tools/samm-cli/target/ samm-cli-*.jar
122
+ samm-cli-linux.tar.gz
123
+ samm-cli-*.jar
121
124
122
125
# The Windows build will build the Windows-specific samm-cli
123
126
# and upload the binary to the build artifacts
@@ -192,6 +195,7 @@ jobs:
192
195
- name : Checkout
193
196
uses : actions/checkout@v3
194
197
198
+ # Required to have Maven settings.xml set up correctly
195
199
- name : Set up JDK 17
196
200
uses : actions/setup-java@v3
197
201
with :
@@ -202,6 +206,17 @@ jobs:
202
206
server-password : OSSRH_TOKEN
203
207
overwrite-settings : false
204
208
209
+ # Required to run the mvn:versions, since enforcer plugin
210
+ # will check for GraalVM JDK
211
+ - name : Setup JDK
212
+ uses : graalvm/setup-graalvm@v1
213
+ with :
214
+ version : ' 22.3.1'
215
+ java-version : ' 17'
216
+ components : ' native-image,js'
217
+ github-token : ${{ secrets.GITHUB_TOKEN }}
218
+ native-image-job-reports : ' false'
219
+
205
220
- name : Fetch Linux Artifacts
206
221
uses : actions/download-artifact@v3
207
222
with :
@@ -248,9 +263,9 @@ jobs:
248
263
echo "release_branch_name=$release_branch_name" >> $GITHUB_ENV
249
264
250
265
# Set version in pom.xml files
251
- mvn clean install -DskipTests -Dmaven.javadoc.skip=true
252
- mvn versions:set -DnewVersion=${{ github.event.inputs.release_version }}
253
- mvn versions:commit
266
+ mvn -B clean install -DskipTests -Dmaven.javadoc.skip=true
267
+ mvn -B versions:set -DnewVersion=${{ github.event.inputs.release_version }}
268
+ mvn -B versions:commit
254
269
# Set version in Antora module
255
270
yq eval -i '.version = "${{ github.event.inputs.release_version }}"' documentation/developer-guide/antora.yml
256
271
0 commit comments