Skip to content

Commit dfd9892

Browse files
Update build.yml
1 parent 4f49545 commit dfd9892

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,15 @@ jobs:
5858
env:
5959
VERSION: ${{ steps.version.outputs.version }}
6060
run: |
61-
if [[ "$VERSION" == *"-beta"* ]] || [[ "$VERSION" == *"-alpha"* ]];
61+
if [[ "$VERSION" == *"-beta"* ]] || [[ "$VERSION" == *"-alpha"* ]] || [[ "$VERSION" == *"-SNAPSHOT"* ]];
6262
then
6363
echo "is_prerelease=true" >> $GITHUB_OUTPUT
64-
echo "is_release=false" >> $GITHUB_OUTPUT
65-
echo "⚠️ Pre-release detected: $VERSION"
66-
elif [[ "${{ github.ref }}" == "refs/heads/release/"* ]];
67-
then
6864
echo "is_release=true" >> $GITHUB_OUTPUT
69-
echo "is_prerelease=false" >> $GITHUB_OUTPUT
70-
echo "✅ Release branch detected"
65+
echo "⚠️ Pre-release detected: $VERSION"
7166
else
72-
echo "is_release=false" >> $GITHUB_OUTPUT
7367
echo "is_prerelease=false" >> $GITHUB_OUTPUT
74-
echo "📝 Development build"
68+
echo "is_release=true" >> $GITHUB_OUTPUT
69+
echo "✅ Regular release detected"
7570
fi
7671
7772
# ============================================================================
@@ -399,4 +394,3 @@ jobs:
399394
echo "📊 Compilation Time Analysis"
400395
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
401396
time mvn clean compile -DskipTests -q --no-transfer-progress
402-

0 commit comments

Comments
 (0)