mirror of
https://github.com/jimeh/modern_bubbling.git
synced 2026-02-18 19:36:39 +00:00
updated release rake task
This commit is contained in:
4
Rakefile
4
Rakefile
@@ -21,9 +21,9 @@ def release
|
||||
styles = Dir.glob("#{$BUILD_DIR}/*/").map { |dir| dir.chop }
|
||||
commit = get_commit_hash
|
||||
filename = $BUILD_DIR + "/" + $ARCHIVE_FILENAME.gsub("{commit}", commit) + ".tgz"
|
||||
cmd = "tar -czf \"#{filename}\""
|
||||
cmd = "tar -C \"#{$BUILD_DIR}\" -czf \"#{filename}\""
|
||||
styles.each do |style|
|
||||
cmd << " \"#{style}\""
|
||||
cmd << " \"#{style.split("/").last}\""
|
||||
end
|
||||
`#{cmd}`
|
||||
puts "Archived commit #{commit} to #{filename} with:"
|
||||
|
||||
Reference in New Issue
Block a user