curls/utils/tag.rb

13 lines
264 B
Ruby
Raw Normal View History

2024-08-02 04:12:44 +00:00
#!/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}"