@@ -7,19 +7,18 @@ configuration: Release
7
7
8
8
init :
9
9
- git config --global core.autocrlf true
10
-
11
- install :
12
10
- ps : $env:GIT_HASH=$env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
11
+ - ps : If ("$env:APPVEYOR_REPO_TAG" -ne "true") { $env:VERSION_SUFFIX="-preview" }
13
12
14
13
assembly_info :
15
14
patch : true
16
15
file : Source\GlobalAssemblyInfo.cs
17
- assembly_version : " {version}.0 "
18
- assembly_file_version : " {version}.0 "
19
- assembly_informational_version : " {version} $(GIT_HASH)"
16
+ assembly_version : " {version}"
17
+ assembly_file_version : " {version}"
18
+ assembly_informational_version : " {version}$(VERSION_SUFFIX) $(GIT_HASH)"
20
19
21
20
before_build :
22
- - nuget restore -verbosity quiet
21
+ - appveyor-retry nuget restore -verbosity quiet
23
22
24
23
build_script :
25
24
- ps : .\Libraries\Build.ps1
@@ -31,17 +30,22 @@ test:
31
30
after_test :
32
31
- ps : .\Libraries\Package.ps1
33
32
34
- notifications :
35
- - provider : Slack
36
- auth_token :
37
- secure : GniMpFE62HprSyQNQoej/fBOAdbQe8EMWAMMNXX0s2JxeNePjemiO1bCf4eYweE4p70mm0sCwMjeEP/Ps9aTMA==
38
- channel : ' #notifications'
39
-
40
33
artifacts :
41
34
- path : Build\Deploy\packages\*.nupkg
35
+ name : ReleaseArtifacts
42
36
43
37
deploy :
44
- - provider : Environment
45
- name : MyGet
46
- on :
47
- branch : master
38
+ provider : GitHub
39
+ auth_token :
40
+ secure : 0s81q7bweVLTFSOKxnIhan7el6bIFiN8HJ1kYJzOkeFXX7wgGSq9bs/rV53X9qpf
41
+ artifact : ReleaseArtifacts
42
+ draft : true
43
+ on :
44
+ branch : master
45
+ appveyor_repo_tag : true
46
+
47
+ notifications :
48
+ - provider : Slack
49
+ auth_token :
50
+ secure : GniMpFE62HprSyQNQoej/fBOAdbQe8EMWAMMNXX0s2JxeNePjemiO1bCf4eYweE4p70mm0sCwMjeEP/Ps9aTMA==
51
+ channel : ' #notifications'
0 commit comments