Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ghr package #27

Merged
merged 6 commits into from Aug 7, 2018
Merged

Add ghr package #27

merged 6 commits into from Aug 7, 2018

Conversation

vadim-hleif
Copy link
Contributor

@vadim-hleif vadim-hleif commented Jul 26, 2018

what

  • Add ghr

why

  • We need it to upload build artifacts to releases

references

install/Makefile Outdated
@@ -3,6 +3,13 @@ OS ?= $(shell uname -s | tr '[:upper:]' '[:lower:'])
INSTALL_PATH ?= /usr/local/bin
CURL ?= curl --fail -sSL
TMP ?= /tmp
EXTENSION=""

ifeq ($(OS),darwin)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We cannot use a global conditional to map OS to an extension because there's no way to guarantee all projects will use the same convention.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@osterman osterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use different pattern for OS distinctions.

Copy link
Member

@osterman osterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebuild readme

ghr-linux:
$(CURL) -o - https://github.com/tcnksm/ghr/releases/download/v$(GHR_VERSION)/ghr_v$(GHR_VERSION)_linux_$(ARCH).tar.gz | tar --wildcards -zxO */ghr > $(INSTALL_PATH)/ghr
chmod +x $(INSTALL_PATH)/ghr

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing target to intall ghr

Should be something like:

## Install ghr to easily upload multiple artifacts to GitHub Release 
ghr: ghr-$(OS)
  @exit 0

install/Makefile Outdated
$(CURL) -o - https://github.com/tcnksm/ghr/releases/download/v$(GHR_VERSION)/ghr_v$(GHR_VERSION)_linux_$(ARCH).tar.gz | tar --wildcards -zxO */ghr > $(INSTALL_PATH)/ghr
chmod +x $(INSTALL_PATH)/ghr

ghr: ghr-$(OS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing target description.

@osterman osterman merged commit af5cdeb into master Aug 7, 2018
@osterman osterman deleted the ghr branch August 7, 2018 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants