Update build-and-release.yml

This commit is contained in:
THEMPGUYAlt 2025-06-25 15:56:15 -04:00 committed by GitHub
parent 287acb6885
commit 8b3cc47fe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

View File

@ -70,10 +70,11 @@ jobs:
run: | run: |
FILE=$(find target -name "*.jar" | head -n 1) FILE=$(find target -name "*.jar" | head -n 1)
echo "Found JAR: $FILE" echo "Found JAR: $FILE"
VERSION=$(echo "$FILE" | grep -oP '\d+\.\d+\.\d+') VERSION=$(echo "$FILE" | grep -oP '\d+\.\d+\.\d+' | head -n 1)
echo "Detected version: $VERSION" TAG_NAME="release-${VERSION//./-}"
echo "version=$VERSION" >> $GITHUB_OUTPUT echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "tag=release-$VERSION" >> $GITHUB_OUTPUT echo "tag=$TAG_NAME" >> "$GITHUB_OUTPUT"
# ---------- Create Git Tag ---------- # ---------- Create Git Tag ----------
- name: Auto-tag commit - name: Auto-tag commit
@ -90,6 +91,7 @@ jobs:
with: with:
tag_name: ${{ steps.detect-version.outputs.tag }} tag_name: ${{ steps.detect-version.outputs.tag }}
name: Limbo Build ${{ steps.detect-version.outputs.version }} name: Limbo Build ${{ steps.detect-version.outputs.version }}
files: | files: |
target/*.jar target/*.jar
external/ViaLimbo/target/*.jar external/ViaLimbo/target/*.jar