Skip to content

Commit 94d7922

Browse files
committed
chore: more debugging statement for failing builds
1 parent a2978c2 commit 94d7922

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ jobs:
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'
103106
uses: JamesIves/[email protected]
104107
with:

gradle/build-logic/common-plugins/src/main/kotlin/plugins/common.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)