-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
63 lines (50 loc) · 1.74 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: 1.0.0-{branch}-{build}
image: Visual Studio 2019
configuration: Release
skip_tags: true
pull_requests:
do_not_increment_build_number: true
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
GoCardlessAccessToken:
secure: TXXkPrAH2llzmiO+qkmAJrPWpYQ+5764Gz6z30AhhxAyc7rMJCDJl5hdRvS4lZKcpVc7wZVi1AiHBXAKjuxeSg==
GoCardlessMerchantAccessToken:
secure: G1bsYuWUcdrK8fgPSf7alrvlFjZWcs6lWJ4xzFusLXpN3uejuFUBCrCo89ln5tRqR7GWfbmNFRnWXe8sAQhbSg==
before_build:
- dotnet restore
build_script:
- ps: dotnet build .\GoCardless.Api.sln --configuration release --no-restore
after_build:
- dotnet pack .\GoCardless.Api.sln --configuration release --no-build -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -o artifacts
- ps: |
Push-Location .\artifacts
$path = Resolve-Path "..\src\GoCardless.Api\bin\Release\netstandard2.0"
$assemblyPath = Join-Path $path "GoCardless.Api.dll"
$env:PRODUCT_VERSION = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($assemblyPath).ProductVersion
$file = "GoCardless.Api-${env:PRODUCT_VERSION}.zip"
Write-Host Zipping contents of $path to $file
7z a $file "$path\*"
Pop-Location
artifacts:
- path: 'artifacts\*nupkg'
- path: artifacts\GoCardless.Api-$(PRODUCT_VERSION).zip
name: source_code
type: zip
test_script:
- dotnet test --no-build --verbosity minimal
deploy:
- provider: NuGet
api_key:
secure: IHQBPznFGiXsWhZzJT3e6RPD062lPDeny7gZokkAfwc8nwBebVnJeeNBhzFIeK62
skip_symbols: false
artifact: /.*(\.|\.s)nupkg/
on:
branch: master
- provider: GitHub
auth_token:
secure: Vbs49DLAUW2eoofz+IBs7TT0YUXScK1hR7PWJVJ1L2qdOrpnEFG+GTT1PT9zubcu
artifact: source_code,/.*(\.|\.s)nupkg/
tag: v$(PRODUCT_VERSION)
draft: true
on:
branch: master