File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,15 @@ jobs:
43
43
- name : Verify application
44
44
run : |
45
45
./.github/workflows/scripts/verifyArtifact.sh ${{ matrix.java-version }}
46
+
47
+ - name : Repackage application
48
+ run : |
49
+ ./.github/workflows/scripts/repackageApplication.sh io.openliberty.java.internal_fat_${{ matrix.java-version }}/build/libs/io.openliberty.java.internal_fat_${{ matrix.java-version }}.war .jar
46
50
47
51
- name : Upload application
48
52
if : github.event_name == 'push' && github.ref == 'refs/heads/main'
49
53
uses : actions/upload-artifact@013d2b89baa2f354c5ffec54c68bec4ab39a2534 # v3.1.2
50
54
with :
51
55
name : Applications
52
- path : io.openliberty.java.internal_fat_${{ matrix.java-version }}/build/libs/io.openliberty.java.internal_fat_${{ matrix.java-version }}.war
56
+ path : io.openliberty.java.internal_fat_${{ matrix.java-version }}/build/libs/io.openliberty.java.internal_fat_${{ matrix.java-version }}.jar
53
57
if-no-files-found : error
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ $# -ne 2 ]; then
4
+ echo " Exactly 2 arguments are required"
5
+ exit 0
6
+ fi
7
+
8
+ path=$( readlink -f $1 ) && echo " Input path: $path "
9
+ ext=$2 && echo " Input ext: $ext "
10
+
11
+ function repackage() {
12
+ lib=$( dirname $path ) && echo " Extract lib: $lib "
13
+ file=$( basename $path ) && echo " Extract file: $file "
14
+ name=" ${file% .* } " && echo " Extract name: $name "
15
+
16
+ cp $path $lib /$name .$ext
17
+ }
18
+
19
+ repackage
You can’t perform that action at this time.
0 commit comments