From 3e0ac6dacfa1f3271a57ffaf63268900b3eb29c9 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Tue, 27 Jul 2021 09:14:33 +1000 Subject: [PATCH] switch to publish WinGet on master branch tag build --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 32479026a..6d989b24e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -76,7 +76,7 @@ environment: on_success: - ps: | - if ($env:APPVEYOR_REPO_BRANCH -eq "master" -and $env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null) # branch only builds pr request number will be null, this ensures deployment only when it's non-pr master branch build + if ($env:APPVEYOR_REPO_BRANCH -eq "master" -and $env:APPVEYOR_REPO_TAG) { iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe .\wingetcreate.exe update Flow-Launcher.Flow-Launcher -s true -u https://github.com/Flow-Launcher/Flow.Launcher/releases/download/v$env:flowVersion/Flow-Launcher-v$env:flowVersion.exe -v $env:flowVersion -t $env:winget_token