13 lines
264 B
Ruby
13 lines
264 B
Ruby
|
#!/usr/bin/env ruby
|
||
|
|
||
|
require "git"
|
||
|
require "json"
|
||
|
|
||
|
file = File.read("server/manifest.json")
|
||
|
manifest = JSON.parse(file)
|
||
|
version = manifest["version"]
|
||
|
name = "v#{version}"
|
||
|
repo = Git.open(".")
|
||
|
repo.add_tag(name)
|
||
|
repo.push("origin", name)
|
||
|
puts "Created tag: #{name}"
|