Skip to content

Commit 7beef53

Browse files
authored
Merge pull request #125 from jammycakes/master
Add a makefile to enable tag-release
2 parents d9df173 + 5feb677 commit 7beef53

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

lib/grom/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Grom
2-
VERSION = '0.3.9'.freeze
2+
VERSION = '0.3.10.pre'.freeze
33
end

makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.PHONY: checkout_to_release deploy_to_release
2+
3+
# Github variables
4+
GITHUB_API=https://api.github.com
5+
ORG=ukparliament
6+
REPO=grom
7+
LATEST_REL=$(GITHUB_API)/repos/$(ORG)/$(REPO)/releases
8+
REL_TAG=$(shell curl -s $(LATEST_REL) | jq -r '.[0].tag_name')
9+
10+
checkout_to_release:
11+
git checkout -b release $(REL_TAG)
12+
13+
deploy_to_release:
14+
rm -f *.gem
15+
gem build *.gemspec
16+
gem push *.gem
17+
rm *.gem

0 commit comments

Comments
 (0)