forked from campaignmonitor/createsend-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
27 lines (23 loc) · 981 Bytes
/
Rakefile
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
# Written to be executed on cygwin for now.
desc "Build solutions for release"
task :solutions do
puts "Building solutions for release..."
msbuild = "c:/Windows/Microsoft.NET/Framework64/v4.0.30319/msbuild.exe"
system "#{msbuild} createsend-dotnet.sln /t:Clean,Build /p:Configuration=Release"
system "#{msbuild} createsend-dotnet.net35.sln /t:Clean,Build /p:Configuration=Release"
system "#{msbuild} createsend-dotnet.net20.sln /t:Clean,Build /p:Configuration=Release"
end
desc "Build NuGet package"
task :build => :solutions do
puts "Building NuGet package..."
system "rm -rf campaignmonitor-api.*.nupkg"
system "nuget pack createsend-dotnet.nuspec"
end
desc "Build NuGet package and push to NuGet"
task :release => :build do
# You will need to set your NuGet API key before releasing:
# $ nuget setapikey {apikey}
puts "Releasing NuGet package..."
system "nuget push campaignmonitor-api.*.nupkg"
end
task :default => :build