Skip to content

Commit 0da8f38

Browse files
committed
ci: trying to fix auto versioning
1 parent 44ecbc0 commit 0da8f38

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.appveyor.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ image: Visual Studio 2017
33
configuration: Debug
44

55
environment:
6-
vsuffix: alpha$(APPVEYOR_BUILD_NUMBER)
6+
vsuffix: "alpha$(APPVEYOR_BUILD_NUMBER)"
7+
hyphen:"-"
78
githubdeploy: false
89

910
install:
1011
- ps: nuget install FSharp.Compiler.Tools -ExcludeVersion -OutputDirectory extra
12+
- ps: $env:VersionPrefix=(Select-Xml -Path ./Version.props -XPath "/Project/PropertyGroup/VersionPrefix").Node.'#text'
1113

1214
build: off
1315

@@ -23,9 +25,6 @@ artifacts:
2325

2426
skip_branch_with_pr: true
2527

26-
before_deploy:
27-
- ps: $env:VersionPrefix=(Select-Xml -Path ./Version.props -XPath "/Project/PropertyGroup/VersionPrefix").Node.'#text'
28-
2928
deploy:
3029
- provider: NuGet
3130
server: https://www.myget.org/F/dynamitey-ci/api/v2/package
@@ -36,7 +35,7 @@ deploy:
3635

3736
- provider: GitHub
3837
artifact: /.*\.nupkg/ # upload all NuGet packages to release assets
39-
tag: v$(VersionPrefix)$(VersionSuffix)
38+
tag: v$(VersionPrefix)$(hyphen)$(vsuffix)
4039
description: 'Release description'
4140
auth_token:
4241
secure: JyJYSgeJYFmkaFy7Gro2dQyv/fqZwz1EzJmp2Nf99H6HUpxNR7ilA/OGPcQk0pA8
@@ -50,22 +49,23 @@ for:
5049
except:
5150
- /deploy-v.*/
5251
environment:
53-
vsuffix: alpha$(APPVEYOR_BUILD_NUMBER)
52+
vsuffix: "alpha$(APPVEYOR_BUILD_NUMBER)"
53+
hyphen:"-"
5454
githubdeploy: false
5555
- branches:
5656
only:
5757
- /deploy-v.*-beta.*/
5858
environment:
59-
vsuffix: beta$(APPVEYOR_BUILD_NUMBER)
60-
VersionSuffix: "-beta$(APPVEYOR_BUILD_NUMBER)"
59+
vsuffix: "beta$(APPVEYOR_BUILD_NUMBER)"
60+
hyphen:"-"
6161
is_prerelease: true
6262
githubdeploy: true
6363
- branches:
6464
only:
6565
- /deploy-v[\d,.]*/
6666
configuration: Release
6767
environment:
68-
vsuffix: $(APPVEYOR_BUILD_NUMBER)
69-
VersionSuffix: ".$(APPVEYOR_BUILD_NUMBER)"
68+
hyphen:"."
69+
vsuffix: "$(APPVEYOR_BUILD_NUMBER)"
7070
is_prerelease: false
7171
githubdeploy: true

0 commit comments

Comments
 (0)