-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
31 lines (22 loc) · 1.08 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
### AppVeyor.yml Build Configuration file
branches:
only:
- production
### Disable the build process
build: off
os: "WMF 5"
clone_folder: c:\repos\AzureExt
environment:
PSGalleryApiKey:
secure: SlvbZKurugx1nGHlyk6VB1dXh3IJOWsY/Ds2bGBpknpze8R3os5pHGmPeyJXHv9K
deploy_script:
### Fix for NuGet 3.4+ issue. Downgrades to NuGet 3.3.0
- ps: Write-Host -NoNewline "Installing NuGet 3.3.0..."
- ps: if (Test-Path 'C:\Tools\NuGet3') { $nugetDir = 'C:\Tools\NuGet3' } else { $nugetDir = 'C:\Tools\NuGet' }
- ps: (New-Object Net.WebClient).DownloadFile('https://dist.nuget.org/win-x86-commandline/v3.3.0/nuget.exe', "$nugetDir\NuGet.exe")
- ps: Write-Host "OK" -ForegroundColor Green
###
- ps: . "$env:APPVEYOR_BUILD_FOLDER\Patch-ModuleManifest.ps1";
- ps: Patch-ModuleManifest -BuildNumber $env:APPVEYOR_BUILD_NUMBER;
- ps: try { Find-Package -Name zzzzzzzzzzzzz -Force -ForceBootstrap -ErrorAction Stop; } catch { Write-Warning -Message 'Finished bootstrap.'; };
- ps: Publish-Module -NuGetApiKey $env:PSGalleryApiKey -Path $env:APPVEYOR_BUILD_FOLDER -Confirm:$false;