Sha256: a93417f0093bfbfd644d62b38f146b7d187c2a05f2942ad44dde38fb73006b5d

Contents?: true

Size: 587 Bytes

Versions: 15

Compression:

Stored size: 587 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['GITHUB_TOKEN'])
release_response = client.create_release 'gjtorikian/mtex2MML', TAG_NAME, \
                                        :name => VERSION

puts 'Done!'

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mathematical-1.6.14 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.13 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.12 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.11 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.10 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.9 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.8 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.7 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.6 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.5 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.4 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.3 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.2 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.1 ext/mathematical/mtex2MML/script/tag
mathematical-1.6.0 ext/mathematical/mtex2MML/script/tag