Skip to content

Commit

Permalink
added jitpack workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauma109 committed May 11, 2024
1 parent 3990f9c commit ca8177c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Check Jitpack Artifact

on:
push:
branches:
- '**'

jobs:
check-artifact:
runs-on: ubuntu-latest
steps:
- name: Download Jitpack Artifact
run: |
URL="https://jitpack.io/com/github/nbauma109/ecd/enhanced-class-decompiler/${GITHUB_REF##*/}-SNAPSHOT/enhanced-class-decompiler-${GITHUB_REF##*/}-SNAPSHOT.zip"
curl --location --fail --connect-timeout 300 --max-time 600 "$URL" --output "enhanced-class-decompiler-${GITHUB_REF##*/}-SNAPSHOT.zip"
- name: Check if the ZIP file is valid
run: |
if unzip -tq "enhanced-class-decompiler-${GITHUB_REF##*/}-SNAPSHOT.zip"; then
echo "The ZIP file is valid."
else
echo "The ZIP file is invalid."
exit 1
fi

0 comments on commit ca8177c

Please sign in to comment.