Skip to content

Commit fb2f6ad

Browse files
authored
Merge pull request #333 from bci-oss/fix-cli-github-release
Include CLI correctly in Github release
2 parents bb37e00 + b7a0270 commit fb2f6ad

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.github/workflows/release-workflow.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,13 @@ jobs:
103103
mvn -B verify -Pnative -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
104104
popd
105105
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
108108
chmod a+x samm
109109
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 .
110113
env:
111114
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}
112115

@@ -116,8 +119,8 @@ jobs:
116119
name: linux-artifacts
117120
path: |
118121
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
121124
122125
# The Windows build will build the Windows-specific samm-cli
123126
# and upload the binary to the build artifacts
@@ -192,6 +195,7 @@ jobs:
192195
- name: Checkout
193196
uses: actions/checkout@v3
194197

198+
# Required to have Maven settings.xml set up correctly
195199
- name: Set up JDK 17
196200
uses: actions/setup-java@v3
197201
with:
@@ -202,6 +206,17 @@ jobs:
202206
server-password: OSSRH_TOKEN
203207
overwrite-settings: false
204208

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+
205220
- name: Fetch Linux Artifacts
206221
uses: actions/download-artifact@v3
207222
with:
@@ -248,9 +263,9 @@ jobs:
248263
echo "release_branch_name=$release_branch_name" >> $GITHUB_ENV
249264
250265
# 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
254269
# Set version in Antora module
255270
yq eval -i '.version = "${{ github.event.inputs.release_version }}"' documentation/developer-guide/antora.yml
256271

0 commit comments

Comments
 (0)