-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
64 lines (54 loc) · 1.75 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
64
image: Visual Studio 2019
version: "{build}" #until it gets updated at install
configuration: Debug
environment:
base_version: 0.11.0
github_deploy: false
is_prerelease: true
package_version: $(BASE_VERSION)-alpha$(APPVEYOR_BUILD_NUMBER)
build: off
test: off
install:
- ps: Update-AppveyorBuild -Version "$env:PACKAGE_VERSION"
- ps: dotnet restore /p:Version="$Env:APPVEYOR_BUILD_VERSION"
build_script:
- ps: dotnet build -c "$Env:CONFIGURATION" /p:Version="$Env:APPVEYOR_BUILD_VERSION"
test_script:
- ps: dotnet test -c "$Env:CONFIGURATION" /p:Version="$Env:APPVEYOR_BUILD_VERSION"
artifacts:
- path: 'src\**\*.nupkg'
name: NuGet
deploy:
- provider: NuGet
server: https://www.myget.org/F/ci-fsharp-optionbuilder/api/v2/package
api_key:
secure: kuAmus0VoO5L9Vcqkh9n9hCZCcHnl1Q0+UsM5KX8uGpAftmkiMwtwRCrqDw1oBLR
skip_symbols: false
symbol_server: https://www.myget.org/F/ci-fsharp-optionbuilder/symbols/api/v2/package
artifact: /.*\.nupkg/
- provider: GitHub
artifact: /.*\.nupkg/ # upload all NuGet packages to release assets
tag: v$(PACKAGE_VERSION)
description: 'Release description'
auth_token:
secure: h9VTCvHA5/iH0f6yn0i323/4Qay/rCDRIGRRtDa+2b8JIFut9YHyiSTIXErvESLu #jay's public repo token
draft: true
prerelease: $(is_prerelease)
on:
github_deploy: true
for:
- branches:
only:
- /deploy-v.*-beta.*/
environment:
package_version: $(BASE_VERSION)-beta$(APPVEYOR_BUILD_NUMBER)
is_prerelease: true
github_deploy: true
- branches:
only:
- /deploy-v[\d,.]*/
configuration: Release
environment:
package_version: $(BASE_VERSION).$(APPVEYOR_BUILD_NUMBER)
is_prerelease: false
github_deploy: true