diff --git a/appveyor.yml b/appveyor.yml index 35753abf2..01bacea0b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,12 +20,6 @@ skip_commits: files: - '*.md' -environment: - winget_token: - secure: HbH4/yvdMmNLUUwN/VEbsJiGLoXNheJpXK4XQbTXVtjcpWSiOBSFeJ2KaE1n9wHs - auth_token: - secure: ij4UeXUYQBDJxn2YRAAhUOjklOGVKDB87Hn5J8tKIzj13yatoI7sLM666QDQFEgv - image: Visual Studio 2019 platform: Any CPU configuration: Release @@ -74,18 +68,14 @@ deploy: on: APPVEYOR_REPO_TAG: true -deploy_script: # this doesnt seem to run at all +environment: + winget_token: + secure: HKfVT2FYZITAG0qqMCePYhIem5a/gzvAgYDSlr6RlXfGmeBUOANUtgJ9X6fNroxN + +on_success: - ps: | - if ($env:APPVEYOR_REPO_BRANCH -eq "dev") #swich to master for release + if ($env:APPVEYOR_REPO_BRANCH -eq "master") { 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 } - -on_success: - - ps: | - if ($env:APPVEYOR_REPO_BRANCH -eq "dev") - { - 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:auth_token - }