Skip to content

Commit

Permalink
Merge pull request #21 from KyleAure/minor-fixes
Browse files Browse the repository at this point in the history
actions/upload-artifacts bug
  • Loading branch information
KyleAure authored Feb 2, 2024
2 parents 3cc81cc + cb6e231 commit a10cf8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion .github/workflows/scripts/repackageApplication.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a10cf8c

Please sign in to comment.