Skip to content

Commit a00017a

Browse files
Fixes action to grab artifact.
1 parent bbd515a commit a00017a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build-project.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,11 @@ jobs:
256256
257257
$BuildSpec = Get-Content -Path buildspec.json -Raw | ConvertFrom-Json
258258
$ProductName = $BuildSpec.name
259-
$ProductVersion = $BuildSpec.version
259+
$ProductVersion = "${BuildSpec.versionMajor}.${BuildSpec.versionMinor}.${BuildSpec.versionPatch}.${BuildSpec.buildNumber}"
260+
$ReleaseType = $BuildSpec.releaseType
261+
if ($ReleaseType -ne "release") {
262+
$ProductVersion = "${ProductVersion}_${ReleaseType}"
263+
}
260264
261265
"pluginName=${ProductName}" >> $env:GITHUB_OUTPUT
262266
"pluginVersion=${ProductVersion}" >> $env:GITHUB_OUTPUT
@@ -277,5 +281,5 @@ jobs:
277281
- name: Upload Artifacts 📡
278282
uses: actions/upload-artifact@v4
279283
with:
280-
name: ${{ steps.setup.outputs.pluginName }}-${{ steps.setup.outputs.pluginVersion }}-windows-x64-${{ needs.check-event.outputs.commitHash }}
281-
path: ${{ github.workspace }}/release/${{ steps.setup.outputs.pluginName }}-${{ steps.setup.outputs.pluginVersion }}-windows-x64*.*
284+
name: ${{ steps.setup.outputs.pluginName }}-windows-${{ steps.setup.outputs.pluginVersion }}-${{ needs.check-event.outputs.commitHash }}
285+
path: ${{ github.workspace }}/release/${{ steps.setup.outputs.pluginName }}-windows-${{ steps.setup.outputs.pluginVersion }}*.*

0 commit comments

Comments
 (0)