/
appveyor.yml
40 lines (40 loc) · 2.24 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
32
33
34
35
36
37
38
39
40
-
branches:
only:
- master
version: 0.2.4.0
test:
assemblies: '**\*.*Test.dll'
configuration: Release
before_build:
- nuget restore src\Clal.sln
- ps: "$env:ApplicationVersion=$env:APPVEYOR_BUILD_VERSION;$env:UpdateUrl='http://www.rahulpnath.com/clal/Releases/';$env:PublishUrl='http://www.rahulpnath.com/clal/Releases/';$mypwd = ConvertTo-SecureString -String \"/(Z&rbrFG){p/6W@8xZvg\" -Force –AsPlainText\nImport-PfxCertificate –FilePath C:\\projects\\clal\\src\\CommandLineApplicationLauncherUI\\CommandLineApplicationLauncherUI_TemporaryKey.pfx cert:\\currentuser\\my -Password $mypwd"
after_build:
- ps: $root = Resolve-Path .\src\CommandLineApplicationLauncherUI\bin\Release\app.publish; [IO.Directory]::GetFiles($root.Path, '*.*', 'AllDirectories') | % { Push-AppveyorArtifact $_ -FileName $_.Substring($root.Path.Length + 1) -DeploymentName releaseBuild }
deploy:
provider: FTP
protocol: ftps
host: waws-prod-sg1-003.ftp.azurewebsites.windows.net
username: rahulpnath\rahulpnath
password:
secure: YOmcTqGUyjYpJOKAnOAfO30hb59cCBTy+Otlj+qrcAo=
folder: /site/wwwroot/clal/Releases
artifact: releaseBuild
-
version: 0.2.4.{build}
test:
assemblies: '**\*.*Test.dll'
configuration: Debug
before_build:
- ps: "$env:ApplicationVersion=$env:APPVEYOR_BUILD_VERSION;$env:UpdateUrl='http://www.rahulpnath.com/clal/Latest/';$env:PublishUrl='http://www.rahulpnath.com/clal/Latest/';$mypwd = ConvertTo-SecureString -String \"/(Z&rbrFG){p/6W@8xZvg\" -Force –AsPlainText\nImport-PfxCertificate –FilePath C:\\projects\\clal\\src\\CommandLineApplicationLauncherUI\\CommandLineApplicationLauncherUI_TemporaryKey.pfx cert:\\currentuser\\my -Password $mypwd"
after_build:
- ps: $root = Resolve-Path .\src\CommandLineApplicationLauncherUI\bin\Debug\app.publish; [IO.Directory]::GetFiles($root.Path, '*.*', 'AllDirectories') | % { Push-AppveyorArtifact $_ -FileName $_.Substring($root.Path.Length + 1) -DeploymentName latestBuild }
deploy:
provider: FTP
protocol: ftps
host: waws-prod-sg1-003.ftp.azurewebsites.windows.net
username: rahulpnath\rahulpnath
password:
secure: YOmcTqGUyjYpJOKAnOAfO30hb59cCBTy+Otlj+qrcAo=
folder: /site/wwwroot/clal/Latest
artifact: latestBuild