Skip to content

Commit e9826e3

Browse files
authored
Merge pull request #93 from IShix-g/release
Refactor build path handling and clean up debug step.
2 parents d306db3 + ba2ef76 commit e9826e3

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.github/workflows/reusable-build-package.yaml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ jobs:
5959
echo "::notice title=Unity Version::$unity_version"
6060
6161
build-package:
62-
timeout-minutes: 20
6362
runs-on: ubuntu-22.04
63+
timeout-minutes: 20
6464
steps:
6565
- name: Normalize Path
6666
id: path-normalizer
@@ -81,7 +81,11 @@ jobs:
8181
builds_path="${builds_path#/}"
8282
builds_path="${builds_path%/}"
8383
84-
final_path="/$builds_path/StandaloneLinux64/$package_name"
84+
if [ -z "$project_path" ]; then
85+
final_path="/$builds_path/StandaloneLinux64/$package_name"
86+
else
87+
final_path="/$project_path/$builds_path/StandaloneLinux64/$package_name"
88+
fi
8589
8690
export_path=$(echo "$final_path" | sed 's://*:/:g')
8791
@@ -116,17 +120,6 @@ jobs:
116120
buildMethod: ${{ inputs.build-method }}
117121
customParameters: ${{ inputs.custom-parameters }}
118122

119-
- name: 'Debug: Verify Exported File Exists'
120-
run: |
121-
echo "Checking exported file:"
122-
ls -la /github/workspace/build/StandaloneLinux64
123-
if [ -f "/github/workspace/build/StandaloneLinux64/Test_1.0.0.unitypackage" ]; then
124-
echo "File exists: /github/workspace/build/StandaloneLinux64/Test_1.0.0.unitypackage"
125-
else
126-
echo "File not found!"
127-
exit 1
128-
fi
129-
130123
- uses: actions/upload-artifact@v4
131124
with:
132125
name: Build-StandaloneLinux64

Assets/Editor/PackageExporter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public static void Export()
1818
{
1919
var options = ArgumentsParser.GetValidatedOptions();
2020
var buildPath = options.GetValueOrDefault("customBuildPath");
21+
buildPath = buildPath?.Replace("/github/workspace/", "");
2122
Export(_folderPath, buildPath);
2223
}
2324

0 commit comments

Comments
 (0)