Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions/upload-artifacts bug #21

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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