Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b0825b8339 | ||
|
|
a5af6f4886 |
26
Gemfile.lock
26
Gemfile.lock
@@ -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
|
||||
@@ -16,6 +16,7 @@ TOOLS = File.expand_path("tools")
|
||||
NUGET = File.expand_path("#{TOOLS}/nuget")
|
||||
NUGET_EXE = File.expand_path("#{TOOLS}/nuget/nuget.exe")
|
||||
@version = ENV['APPVEYOR_REPO_TAG_NAME'] || '0.0.1-alpha1'
|
||||
@version = @version.sub "v", ""
|
||||
PROJECTS = Dir.glob('src/*').select{|dir| File.directory? dir }
|
||||
|
||||
desc 'Retrieve things'
|
||||
@@ -63,15 +64,16 @@ end
|
||||
|
||||
desc 'publish nugets'
|
||||
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'
|
||||
else
|
||||
PROJECTS.each{|dir|
|
||||
Dir.chdir(dir) do
|
||||
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{NUGET_KEY}"
|
||||
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{nugetKey}"
|
||||
end
|
||||
}
|
||||
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{NUGET_KEY}"
|
||||
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{nugetKey}"
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user