Skip to content

Commit acdb5da

Browse files
committed
build(release): update versioning for OneDrive artifacts
1 parent 54efa54 commit acdb5da

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
outputs:
3131
package-env: ${{ steps.info.outputs.package-env }}
3232
package-version: ${{ steps.info.outputs.package-version }}
33+
onedrive-version: ${{ steps.info.outputs.onedrive-version }}
3334
draft-release: ${{ steps.info.outputs.draft-release }}
3435
skip-publish: ${{ steps.info.outputs.skip-publish }}
3536
dry-run: ${{ steps.info.outputs.dry-run }}
@@ -63,7 +64,10 @@ jobs:
6364
}
6465
6566
echo "package-env=$PackageEnv" >> $Env:GITHUB_OUTPUT
67+
$OneDriveVersion = "$PackageVersion.0"
68+
6669
echo "package-version=$PackageVersion" >> $Env:GITHUB_OUTPUT
70+
echo "onedrive-version=$OneDriveVersion" >> $Env:GITHUB_OUTPUT
6771
echo "draft-release=$($DraftRelease.ToString().ToLower())" >> $Env:GITHUB_OUTPUT
6872
echo "skip-publish=$($SkipPublish.ToString().ToLower())" >> $Env:GITHUB_OUTPUT
6973
echo "dry-run=$($DryRun.ToString().ToLower())" >> $Env:GITHUB_OUTPUT
@@ -346,11 +350,13 @@ jobs:
346350
$PackageVersion = '${{ needs.preflight.outputs.package-version }}'
347351
New-Item -Path "onedrive-staging" -ItemType Directory -Force | Out-Null
348352
353+
$OneDriveVersion = '${{ needs.preflight.outputs.onedrive-version }}'
354+
349355
$Mappings = @{
350-
"output/UniGetUI-release-x64/UniGetUI.Installer.x64.exe" = "Devolutions.UniGetUI.win-x64.$PackageVersion.exe"
351-
"output/UniGetUI-release-arm64/UniGetUI.Installer.arm64.exe" = "Devolutions.UniGetUI.win-arm64.$PackageVersion.exe"
352-
"output/UniGetUI-release-x64/UniGetUI.x64.zip" = "Devolutions.UniGetUI.win-x64.$PackageVersion.zip"
353-
"output/UniGetUI-release-arm64/UniGetUI.arm64.zip" = "Devolutions.UniGetUI.win-arm64.$PackageVersion.zip"
356+
"output/UniGetUI-release-x64/UniGetUI.Installer.x64.exe" = "Devolutions.UniGetUI.win-x64.$OneDriveVersion.exe"
357+
"output/UniGetUI-release-arm64/UniGetUI.Installer.arm64.exe" = "Devolutions.UniGetUI.win-arm64.$OneDriveVersion.exe"
358+
"output/UniGetUI-release-x64/UniGetUI.x64.zip" = "Devolutions.UniGetUI.win-x64.$OneDriveVersion.zip"
359+
"output/UniGetUI-release-arm64/UniGetUI.arm64.zip" = "Devolutions.UniGetUI.win-arm64.$OneDriveVersion.zip"
354360
}
355361
356362
foreach ($entry in $Mappings.GetEnumerator()) {
@@ -368,7 +374,7 @@ jobs:
368374
azure_client_id: ${{ secrets.ONEDRIVE_AUTOMATION_CLIENT_ID }}
369375
azure_client_secret: ${{ secrets.ONEDRIVE_AUTOMATION_CLIENT_SECRET }}
370376
conflict_behavior: replace
371-
destination_path: /UniGetUI/${{ needs.preflight.outputs.package-version }}
377+
destination_path: /UniGetUI/${{ needs.preflight.outputs.onedrive-version }}
372378
remote: releases
373379
source_path: Devolutions.UniGetUI.*
374380
working_directory: onedrive-staging

0 commit comments

Comments
 (0)