Compare commits

...

2 Commits

Author SHA1 Message Date
Tommy Parnell
b0825b8339 minor build bug 2016-07-01 00:49:05 -07:00
Tommy Parnell
a5af6f4886 fix publish syntax 2016-07-01 00:23:51 -07:00
2 changed files with 5 additions and 29 deletions

View File

@@ -1,26 +0,0 @@
GEM
remote: http://rubygems.org/
specs:
albacore (2.0.4)
map (~> 6.5)
nokogiri (~> 1.5)
rake (> 10)
semver2 (~> 3.4)
map (6.6.0)
mini_portile2 (2.0.0)
nokogiri (1.6.7.2-x64-mingw32)
mini_portile2 (~> 2.0.0.rc2)
os (0.9.6)
rake (11.1.1)
semver2 (3.4.2)
PLATFORMS
x64-mingw32
DEPENDENCIES
albacore
nokogiri
os
BUNDLED WITH
1.12.1

View File

@@ -16,6 +16,7 @@ TOOLS = File.expand_path("tools")
NUGET = File.expand_path("#{TOOLS}/nuget") NUGET = File.expand_path("#{TOOLS}/nuget")
NUGET_EXE = File.expand_path("#{TOOLS}/nuget/nuget.exe") NUGET_EXE = File.expand_path("#{TOOLS}/nuget/nuget.exe")
@version = ENV['APPVEYOR_REPO_TAG_NAME'] || '0.0.1-alpha1' @version = ENV['APPVEYOR_REPO_TAG_NAME'] || '0.0.1-alpha1'
@version = @version.sub "v", ""
PROJECTS = Dir.glob('src/*').select{|dir| File.directory? dir } PROJECTS = Dir.glob('src/*').select{|dir| File.directory? dir }
desc 'Retrieve things' desc 'Retrieve things'
@@ -63,15 +64,16 @@ end
desc 'publish nugets' desc 'publish nugets'
task :nuspec_publish do task :nuspec_publish do
if ENV['APPVEYOR_REPO_TAG'] != 'true' nugetKey = ENV['APPVEYOR_REPO_TAG']
if nugetKey != 'true' || nugetKey != true;
puts 'not publishing since APPVEYOR_REPO_TAG has not been set. Please add a github tag' puts 'not publishing since APPVEYOR_REPO_TAG has not been set. Please add a github tag'
else else
PROJECTS.each{|dir| PROJECTS.each{|dir|
Dir.chdir(dir) do Dir.chdir(dir) do
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{NUGET_KEY}" sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{nugetKey}"
end end
} }
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{NUGET_KEY}" sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{nugetKey}"
end end