diff --git a/appveyor.yml b/appveyor.yml index 5bd945455b..67367d8641 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,8 +3,6 @@ os: Visual Studio 2015 before_build: - git submodule update --init - ps: src\Skia\getnatives.ps1 -- appveyor RegisterXamarinLicense -Email %xamarin_email% -Password %xamarin_password% -Product Android -- appveyor RegisterXamarinLicense -Email %xamarin_email% -Password %xamarin_password% -Product iOS - nuget restore Perspex.sln environment: @@ -18,9 +16,6 @@ install: cache: - gtk-sharp-2.12.26.msi - -on_finish: - - appveyor UnregisterXamarinLicense -Email %xamarin_email% -Password %xamarin_password% configuration: - Release diff --git a/nuget/build-appveyor.ps1 b/nuget/build-appveyor.ps1 index 1439544c5b..35ee371991 100644 --- a/nuget/build-appveyor.ps1 +++ b/nuget/build-appveyor.ps1 @@ -16,13 +16,13 @@ sv repobranch $env:APPVEYOR_REPO_BRANCH sv pullreq $env:APPVEYOR_PULL_REQUEST_NUMBER echo "Checking for publishing" -echo $reponame $repobranch $pullreq -if ($reponame -eq "Perspex/Perspex") +echo "$reponame $repobranch $pullreq" +if ([string]::IsNullOrWhiteSpace($pullreq)) { - echo Repo name matched + echo "Build is not a PR" if($repobranch -eq "master") { - echo Repo branch matched + echo "Repo branch matched" nuget.exe push Perspex.$version.nupkg $key -Source https://www.myget.org/F/perspex-nightly/api/v2/package nuget.exe push Perspex.Desktop.$version.nupkg $key -Source https://www.myget.org/F/perspex-nightly/api/v2/package nuget.exe push Perspex.Skia.Desktop.$version.nupkg $key -Source https://www.myget.org/F/perspex-nightly/api/v2/package