Sha256: 11931e6fc76e6d4622b00c151155b2b8f252e0e1c86085455483d1e7ecdae7f4

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 Bytes

Contents

#!/usr/bin/env ruby

require 'octokit'

`git push origin`

`rm -rf build`
`mkdir build`

Dir.chdir 'build' do
  `cmake ..`
  `make`
end

MTEX2MML_HEADER = File.read(File.join('src', 'mtex2MML.h'))
VERSION = MTEX2MML_HEADER.match(/MTEX2MML_VERSION\s*"(.+?)"/)[1]
TAG_NAME = "v#{VERSION}"

puts "Creating tag #{TAG_NAME}..."
`git tag #{TAG_NAME}`

puts 'Creating release...'
client = Octokit::Client.new(:access_token => ENV['MY_PERSONAL_TOKEN'])
release_response = client.create_release 'gjtorikian/mtex2MML', TAG_NAME, \
                                        :name => VERSION

puts 'Done!'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mathematical-1.5.12 ext/mathematical/mtex2MML/script/release