-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathappveyor.yml
85 lines (73 loc) · 2.58 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
test: off
version: '0.3.3.{build}'
image: Visual Studio 2017
environment:
my_pfx:
secure: jxL/b1xngUepPiYC48vTzA==
branches:
only:
- master
- develop
skip_tags: true
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
dotnet_csproj:
patch: true
file: '**\netcore.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{build}'
informational_version: '{version}'
init:
# Good practice, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
install:
# Install repo specific stuff here
- ps: try { Import-PfxCertificate -FilePath .\examples\uwpapp\uwpapp_TemporaryKey.pfx -CertStoreLocation cert:\CurrentUser\My -Password (ConvertTo-SecureString $env:my_pfx -AsPlainText -Force) } catch {}
before_build:
# Restore packages
- cmd: echo %CD%
- cmd: nuget restore ./fbchat-sharp.sln
build_script:
# Build project
cmd: msbuild /t:build /p:Configuration=Release /p:Platform=x64 ./fbchat-sharp.sln
after_build:
- ps: .\examples\uwpapp\runAppcert.ps1 -target 'examples\uwpapp\AppPackages\uwpapp_1.0.0.0_Release_Test\uwpapp_1.0.0.0_x64_Release.appxbundle'
- cmd: nuget pack ./fbchat-sharp/fbchat-sharp.nuspec
- cmd: for /D %%x in (.\examples\uwpapp\AppPackages\uwpapp_*) do set "f=%%~fx"
- cmd: 7z a example_uwp.zip %f%
- cmd: 7z a example_wpf.zip .\examples\wpfapp\bin\Release
artifacts:
- path: '*.nupkg'
- path: 'example_uwp.zip'
- path: 'example_wpf.zip'
deploy:
- provider: GitHub
release: $(appveyor_build_version)
description: ''
auth_token:
secure: HzG3BylRrdqU49wZmjr6asVW70vqKv03uHai403G6PkHjpmD9s8C17IlpnxHPy8h # your encrypted token from GitHub
artifact: /.*\.nupkg/,example_uwp.zip,example_wpf.zip
draft: true
prerelease: false
force_update: true
on:
branch: master # release from master branch only
appveyor_repo_tag: false # deploy on non tag push only
- provider: GitHub
release: $(appveyor_build_version) beta
description: ''
auth_token:
secure: HzG3BylRrdqU49wZmjr6asVW70vqKv03uHai403G6PkHjpmD9s8C17IlpnxHPy8h # your encrypted token from GitHub
artifact: /.*\.nupkg/,example_uwp.zip,example_wpf.zip
draft: true
prerelease: true
force_update: true
on:
branch: develop # pre-release from develop branch only
appveyor_repo_tag: false # deploy on non tag push only