Skip to content

Commit d7018ac

Browse files
authored
Do not create GH tag on release (qltysh#1106)
* Do not create GH tag on release * Add some helper functions to Makefile
1 parent 1eaaf1e commit d7018ac

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
steps:
2727
- checkout
2828
- *init
29-
- run:
30-
name: Install Hub dependency
31-
command: install_hub
29+
# - run:
30+
# name: Install Hub dependency
31+
# command: install_hub
3232
- run:
3333
name: Login on Dockerhub
3434
command: login_to_dockerhub

.circleci/shared.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ function publish_new_version() {
5050
gem push ./*.gem
5151

5252
# Create gh tag
53-
tag_version
53+
# Skip until we have a better way to handle this
54+
# tag_version
5455

5556
# Trigger hombrew release
5657
trigger_hombrew_release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
coverage
33
spec/reports
44
base_rubocop.yml
5+
artifacts.tar.gz

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.PHONY: install uninstall image test citest bundle
22

3+
VERSION ?= $(shell cat VERSION)
4+
ARTIFACTS_OUTPUT ?= artifacts.tar.gz
35
PREFIX ?= /usr/local
46
SKIP_ENGINES ?= 0
57

@@ -59,3 +61,10 @@ bundle:
5961
--volume $(PWD):/usr/src/app \
6062
--workdir /usr/src/app \
6163
codeclimate/codeclimate $(BUNDLE_ARGS)
64+
65+
build-gem:
66+
gem build ./*.gemspec
67+
68+
new-github-release: build-gem
69+
tar -c -f "${ARTIFACTS_OUTPUT}" ./*.gem
70+
gh release create "v${VERSION}" "${ARTIFACTS_OUTPUT}" --title "v${VERSION}" --notes "Release v${VERSION}"

0 commit comments

Comments
 (0)