File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
gradle/build-logic/common-plugins/src/main/kotlin/plugins Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 8080 id : gradle-build
8181 run : |
8282 ./gradlew ciBuild
83+ ls -ltrh backend/build/distributions
84+ echo "dist_path=$(ls -1 backend/build/distributions/*.zip | head -n 1)" >> "$GITHUB_OUTPUT"
85+ echo "dist_name=$(ls -1 backend/build/distributions/*.zip | head -n 1 | xargs basename)" >> "$GITHUB_OUTPUT"
8386 env :
8487 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8588 JOB_CONTEXT : ${{ toJSON(job) }}
@@ -93,12 +96,12 @@ jobs:
9396 if : steps.gradle-build.outcome == 'success' && runner.os == 'Linux'
9497 uses : actions/upload-artifact@v3
9598 with :
96- name : ${{ steps.gradle-build.outputs.dist_name }}.zip
99+ name : ${{ steps.gradle-build.outputs.dist_name }}
97100 path : |
98- backend/build/distributions/backend-*.zip
101+ ${{ steps.gradle-build.outputs.dist_path }}
99102 if-no-files-found : error
100103
101- - name : 🕸Deploy the webapp to Github Pages
104+ - name : 🕸 Deploy the webapp to Github Pages
102105 if : steps.gradle-build.outcome == 'success' && runner.os == 'Linux'
103106104107 with :
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ tasks {
178178 setOutput(" name" , project.name)
179179 setOutput(" group" , project.group)
180180 setOutput(" version" , project.version)
181- setOutput(" dist_name " , " ${project.name} -${project.version} " )
181+ setOutput(" artifact_name " , " ${project.name} -${project.version} " )
182182 }
183183 }
184184 }
You can’t perform that action at this time.
0 commit comments