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 80
80
id : gradle-build
81
81
run : |
82
82
./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"
83
86
env :
84
87
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
85
88
JOB_CONTEXT : ${{ toJSON(job) }}
@@ -93,12 +96,12 @@ jobs:
93
96
if : steps.gradle-build.outcome == 'success' && runner.os == 'Linux'
94
97
uses : actions/upload-artifact@v3
95
98
with :
96
- name : ${{ steps.gradle-build.outputs.dist_name }}.zip
99
+ name : ${{ steps.gradle-build.outputs.dist_name }}
97
100
path : |
98
- backend/build/distributions/backend-*.zip
101
+ ${{ steps.gradle-build.outputs.dist_path }}
99
102
if-no-files-found : error
100
103
101
- - name : 🕸Deploy the webapp to Github Pages
104
+ - name : 🕸 Deploy the webapp to Github Pages
102
105
if : steps.gradle-build.outcome == 'success' && runner.os == 'Linux'
103
106
104
107
with :
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ tasks {
178
178
setOutput(" name" , project.name)
179
179
setOutput(" group" , project.group)
180
180
setOutput(" version" , project.version)
181
- setOutput(" dist_name " , " ${project.name} -${project.version} " )
181
+ setOutput(" artifact_name " , " ${project.name} -${project.version} " )
182
182
}
183
183
}
184
184
}
You can’t perform that action at this time.
0 commit comments