Skip to content

Commit 1b3c23e

Browse files
committed
Merge branch 'refs/heads/version/1.21' into version/1.21.7
# Conflicts: # .github/workflows/publish.yml
2 parents 63687cf + ebfce12 commit 1b3c23e

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish to Maven & Create GitHub Release
33
on:
44
push:
55
branches:
6-
- version/1.21.7
6+
- 'version/*'
77
workflow_dispatch:
88

99
env:
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@v4
2626
with:
2727
fetch-depth: 0
28-
28+
2929
- name: Cache Gradle packages
3030
uses: actions/cache@v3
3131
with:
@@ -40,25 +40,31 @@ jobs:
4040
with:
4141
distribution: 'graalvm'
4242
java-version: '21'
43-
43+
4444
- name: Build all modules with Gradle
4545
run: ./gradlew build shadowJar --parallel --no-scan
4646

4747
- name: Check all modules with Gradle
4848
run: ./gradlew check --parallel --no-scan
49-
49+
5050
- name: Publish all modules to Maven
5151
run: ./gradlew publish --parallel --no-scan
5252

53-
- name: Extract Project Version
53+
- name: Extract Project Version from Gradle
5454
id: get_version
55-
run: echo "VERSION=$(./gradlew properties | grep "^version:" | awk '{print $2}')" >> $GITHUB_ENV
55+
run: |
56+
VERSION=$(./gradlew properties --no-daemon \
57+
| grep '^version:' \
58+
| awk '{print $2}')
59+
echo "VERSION=$VERSION" >> $GITHUB_ENV
5660
5761
- name: Find and filter JAR files
5862
id: find_jars
5963
run: |
6064
echo "JAR_FILES<<EOF" >> $GITHUB_ENV
61-
find . -path "**/build/libs/*.jar" | grep -E "${{ env.MODULE_REGEX }}" >> $GITHUB_ENV
65+
find . -path "**/build/libs/*.jar" \
66+
| grep -E "${{ env.MODULE_REGEX }}" \
67+
>> $GITHUB_ENV
6268
echo "EOF" >> $GITHUB_ENV
6369
6470
- name: Create GitHub Release

0 commit comments

Comments
 (0)