Skip to content

Commit

Permalink
Merge winget release package into github release.
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f committed Jul 17, 2022
1 parent fe1816f commit fe7bae3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
6 changes: 0 additions & 6 deletions build/azure-pipeline/workflow-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,6 @@ stages:
env:
BUILD_VERSION: $(Build.Version)

- script: just prepare-winget-release
displayName: Prepare winget release
workingDirectory: '$(System.DefaultWorkingDirectory)/r12f.divoom'
env:
BUILD_VERSION: $(Build.Version)

- task: CopyFiles@2
displayName: Copy packages to staging folder
inputs:
Expand Down
12 changes: 1 addition & 11 deletions build/post-build/post-build.justfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ RELEASE_TEMPLATE_PARAMETER_FOLDER := RELEASE_FOLDER + "/template-parameters"
RELEASE_CRATES_FOLDER := RELEASE_FOLDER + "/crates"
RELEASE_NUGET_FOLDER := RELEASE_FOLDER + "/nuget"
RELEASE_GITHUB_FOLDER := RELEASE_FOLDER + "/github"
RELEASE_WINGET_FOLDER := RELEASE_FOLDER + "/winget"
RELEASE_CHOCO_FOLDER := RELEASE_FOLDER + "/choco"

#
Expand Down Expand Up @@ -105,6 +104,7 @@ prepare-github-release:
@Write-Host "Copy all tarballs from each build folder ..."
Get-ChildItem "./{{BUILD_FOLDER_PREFIX}}*/packages/*.zip" -Recurse | Copy-Item -Destination "{{RELEASE_GITHUB_FOLDER}}" -PassThru
Get-ChildItem "./{{BUILD_FOLDER_PREFIX}}*/packages/*.tar.gz" -Recurse | Copy-Item -Destination "{{RELEASE_GITHUB_FOLDER}}" -PassThru
Get-ChildItem "./{{BUILD_FOLDER_PREFIX}}*/packages/*.msix" -Recurse | Copy-Item -Destination "{{RELEASE_GITHUB_FOLDER}}" -PassThru

@Write-Host "Copy symbol package ..."
Copy-Item -Path "{{INTERMEDIATE_SYMBOL_PACKAGE_FOLDER}}/divoom.symbols.{{BUILD_VERSION}}.zip" -Destination "{{RELEASE_GITHUB_FOLDER}}" -PassThru
Expand All @@ -119,16 +119,6 @@ prepare-nuget-release:
@Write-Host "Copy all nuget packages from each build folder ..."
Get-ChildItem "./{{BUILD_FOLDER_PREFIX}}*/packages/*.nupkg" -Recurse | Copy-Item -Destination "{{RELEASE_NUGET_FOLDER}}" -PassThru

#
# Prepare packages for winget releases
#
prepare-winget-release:
if (Test-Path "{{RELEASE_WINGET_FOLDER}}") { Remove-Item -Path "{{RELEASE_WINGET_FOLDER}}" -Recurse -Force }
New-Item -ItemType Directory -Path "{{RELEASE_WINGET_FOLDER}}" -Force | Out-Null

@Write-Host "Copy all tarballs from each build folder ..."
Get-ChildItem "./{{BUILD_FOLDER_PREFIX}}*/packages/*.msix" -Recurse | Copy-Item -Destination "{{RELEASE_WINGET_FOLDER}}" -PassThru

#
# Utility tasks
#
Expand Down

0 comments on commit fe7bae3

Please sign in to comment.