mirror of https://github.com/LOOHP/Limbo.git
Update build-and-release.yml
This commit is contained in:
parent
287acb6885
commit
8b3cc47fe4
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue