Skip to content

Commit 5b0ee70

Browse files
authored
Merge pull request #96 from IShix-g/release
Refactor build path handling and update artifact naming
2 parents 905a927 + f73b3d5 commit 5b0ee70

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,5 @@ jobs:
118118

119119
- uses: actions/upload-artifact@v4
120120
with:
121-
name: Build-StandaloneLinux64
121+
name: ${{ steps.path-normalizer.outputs.normalized-package-name }}
122122
path: ${{ steps.path-normalizer.outputs.export-path }}

Assets/Editor/PackageExporter.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ public static void Export()
1818
{
1919
var options = ArgumentsParser.GetValidatedOptions();
2020
var buildPath = options.GetValueOrDefault("customBuildPath");
21-
buildPath = buildPath?.Replace("/github/workspace/", "./");
21+
22+
var workspaceDir = Environment.GetEnvironmentVariable("GITHUB_WORKSPACE");
23+
if (!string.IsNullOrEmpty(workspaceDir))
24+
{
25+
buildPath = buildPath.Replace($"{workspaceDir}/", "./");
26+
}
27+
2228
Export(_folderPath, buildPath);
2329
}
2430

0 commit comments

Comments
 (0)