mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-08-20 17:18:27 +02:00
Changes the nightly build workflow to delete/create a new release *only* if the entire build process passes. This avoids a potential case of a nightly build failing but having overwritten the old one, which has happened before. After this change lands, similar changes will probably be made to the deployment script for releases.
21 lines
681 B
Plaintext
21 lines
681 B
Plaintext
$ErrorActionPreference = 'Stop';
|
|
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
|
|
$url = 'https://github.com/ClementTsang/bottom/releases/download/$version/bottom_i686-pc-windows-msvc.zip'
|
|
$url64 = 'https://github.com/ClementTsang/bottom/releases/download/$version/bottom_x86_64-pc-windows-msvc.zip'
|
|
|
|
$packageArgs = @{
|
|
packageName = $env:ChocolateyPackageName
|
|
softwareName = 'bottom'
|
|
unzipLocation = $toolsDir
|
|
fileType = 'exe'
|
|
url = $url
|
|
url64bit = $url64
|
|
|
|
checksum = '$hash_32'
|
|
checksumType = 'sha1'
|
|
checksum64 = '$hash_64'
|
|
checksumType64= 'sha1'
|
|
|
|
}
|
|
Install-ChocolateyZipPackage @packageArgs
|