File tree 3 files changed +31
-7
lines changed
3 files changed +31
-7
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -31,20 +31,27 @@ assembly_info:
31
31
assembly_file_version : ' {version}'
32
32
assembly_informational_version : $(APPVEYOR_BUILD_VERSION)
33
33
34
+ environment :
35
+ matrix :
36
+ - BUILD_TARGET : base
37
+ NUSPEC_FILE : CommandLine
38
+ - BUILD_TARGET : fsharp
39
+ NUSPEC_FILE : CommandLine.fsharp
40
+
34
41
build_script :
35
- - cmd : build.cmd
42
+ - cmd : build.cmd %BUILD_TARGET%
36
43
37
44
after_build :
38
45
- ps : |
39
- get-childitem build \* -include *.dll | foreach-object { "{0}`t{1}" -f $_.Name , [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileVersion }
46
+ powershell get-childitem Release \* -include *.dll | foreach-object { "{0}`t{1}" -f $_.Path , [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileVersion }
40
47
41
- nuget pack CommandLine.nuspec -version " $env:APPVEYOR_BUILD_VERSION"
48
+ .\build- nuget- pack.cmd $env:BUILD_TARGET $env:NUSPEC_FILE
42
49
43
50
test : off # tests handled within FAKE
44
51
45
52
artifacts :
46
- - path : ' *.nupkg'
47
- name : NugetPackage
53
+ - path : ' Release/**/ *.nupkg'
54
+ name : NugetPackages
48
55
49
56
on_failure :
50
57
- cmd : |
@@ -55,8 +62,8 @@ deploy:
55
62
- provider : NuGet
56
63
api_key :
57
64
secure : +Zxb8M5W+UJV1yd9n8seu3PvH/hGNPEmgriGBnsSmtxjKPQAJ4+iL7tKAmfPHAuG
58
- artifact : ' NuGetPackage '
65
+ artifact : ' NuGetPackages '
59
66
on :
60
- branch : master
67
+ branch : / master|v\d+\.\d+\.\d+[.*]/
61
68
APPVEYOR_REPO_TAG : true
62
69
Original file line number Diff line number Diff line change
1
+ @ ECHO OFF
2
+ setlocal
3
+
4
+ if " %1 " == " " goto :USAGE
5
+
6
+ pushd Release\%1
7
+
8
+ copy ..\..\README.md
9
+ copy ..\..\CommandLine.%1 .nuspec .
10
+ nuget pack " CommandLine.%1 .nuspec" -properties Version=%APPVEYOR_BUILD_VERSION%
11
+ if errorlevel 1 popd& exit 1 /b
12
+ goto :END
13
+
14
+ :USAGE
15
+
16
+ :END
17
+ popd
You can’t perform that action at this time.
0 commit comments