diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2461516..4d64974 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -60,13 +60,14 @@ jobs: ./.github/workflows/scripts/verifyArtifact.sh ${{ steps.strip.outputs.java-version }} - name: Repackage application + if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | ./.github/workflows/scripts/repackageApplication.sh io.openliberty.java.internal_fat_${{ steps.strip.outputs.java-version }}/build/libs/io.openliberty.java.internal_fat_${{ steps.strip.outputs.java-version }}.war .jar - name: Upload application if: github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: actions/upload-artifact@3a8048248f2f288c271830f8ecf2a1c5d8eb0e9a #v3.1.2 + uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0 with: - name: Applications + name: io.openliberty.java.internal_fat_${{ steps.strip.outputs.java-version }} path: io.openliberty.java.internal_fat_${{ steps.strip.outputs.java-version }}/build/libs/io.openliberty.java.internal_fat_${{ steps.strip.outputs.java-version }}.jar if-no-files-found: error diff --git a/.github/workflows/scripts/repackageApplication.sh b/.github/workflows/scripts/repackageApplication.sh index 268e0c4..dfc695e 100755 --- a/.github/workflows/scripts/repackageApplication.sh +++ b/.github/workflows/scripts/repackageApplication.sh @@ -13,7 +13,8 @@ function repackage() { file=$(basename $path) && echo "Extract file: $file" name="${file%.*}" && echo "Extract name: $name" - cp $path $lib/$name.$ext + cp $lib/$file $lib/$name$ext + ls -la $lib } repackage diff --git a/README.md b/README.md index ce163c7..833b414 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Open Liberty Miscellaneous +![GitHub Actions CI](https://github.com/OpenLiberty/open-liberty-misc/actions/workflows/CI.yml/badge.svg) + Miscellaneous Open Liberty applications and content # Getting Started