File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Publish to Maven & Create GitHub Release
33on :
44 push :
55 branches :
6- - version/1.21.7
6+ - ' version/* '
77 workflow_dispatch :
88
99env :
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
You can’t perform that action at this time.
0 commit comments