Skip to content

Commit

Permalink
Only do release if local version number does not match version number…
Browse files Browse the repository at this point in the history
… on Chocolatey.
  • Loading branch information
lawmurray committed Jun 19, 2024
1 parent d940d91 commit 4386796
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions choco/release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,22 @@ function Release-Package {
}

$version=$(git describe --tags --abbrev=0).Substring(1)
$choco_version=$(choco search --limit-output --exact doxide).Substring(7)

Update-Package -Package doxide.portable -Download doxide.exe
Update-Package -Package doxide.install -Download doxide-installer.exe
Update-Package -Package doxide
if ($version -ne $choco_version) {
Update-Package -Package doxide.portable -Download doxide.exe
Update-Package -Package doxide.install -Download doxide-installer.exe
Update-Package -Package doxide

Build-Package -Package doxide.portable -Version $version
Build-Package -Package doxide.install -Version $version
Build-Package -Package doxide -Version $version
Build-Package -Package doxide.portable -Version $version
Build-Package -Package doxide.install -Version $version
Build-Package -Package doxide -Version $version

Test-Package -Package doxide.portable -Version $version
Test-Package -Package doxide.install -Version $version
#Test-Package -Package doxide -Version $version
Test-Package -Package doxide.portable -Version $version
Test-Package -Package doxide.install -Version $version
#Test-Package -Package doxide -Version $version

Release-Package -Package doxide.portable -Version $version
Release-Package -Package doxide.install -Version $version
Release-Package -Package doxide -Version $version
Release-Package -Package doxide.portable -Version $version
Release-Package -Package doxide.install -Version $version
Release-Package -Package doxide -Version $version
}

0 comments on commit 4386796

Please sign in to comment.