mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-11 18:38:45 +00:00
Update release script to upload assets in parallel
This commit is contained in:
parent
c4baa6a10c
commit
4d928001b8
@ -23,7 +23,8 @@ end
|
|||||||
# List assets
|
# List assets
|
||||||
assets = Hash[rel['assets'].map { |a| a.values_at *%w[name id] }]
|
assets = Hash[rel['assets'].map { |a| a.values_at *%w[name id] }]
|
||||||
|
|
||||||
files.select { |f| File.exists? f }.each do |file|
|
files.select { |f| File.exists? f }.map do |file|
|
||||||
|
Thread.new do
|
||||||
name = File.basename file
|
name = File.basename file
|
||||||
|
|
||||||
if asset_id = assets[name]
|
if asset_id = assets[name]
|
||||||
@ -41,3 +42,4 @@ files.select { |f| File.exists? f }.each do |file|
|
|||||||
:authorization => "token #{token}",
|
:authorization => "token #{token}",
|
||||||
:content_type => "application/octet-stream")
|
:content_type => "application/octet-stream")
|
||||||
end
|
end
|
||||||
|
end.each(&:join)
|
||||||
|
Loading…
Reference in New Issue
Block a user