Skip to content

Instantly share code, notes, and snippets.

@nij4t
Last active August 25, 2020 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nij4t/436cbfb5580dda961e14643524fdec8d to your computer and use it in GitHub Desktop.
Save nij4t/436cbfb5580dda961e14643524fdec8d to your computer and use it in GitHub Desktop.
Makefile for go-semantic-release
#!/bin/sh
set -x
RELEASE=$1
TMPFILE=$(mktemp)
wget https://github.com/Nightapes/go-semantic-release/releases/download/v1.5.0/go-semantic-release.linux_x86_64.zip -O $TMPFILE
unzip -o -d /tmp $TMPFILE
mv /tmp/go-semantic-release.linux_x86_64 $RELEASE
chmod +x $RELEASE
rm $TMPFILE
SEMREL_PATH?=~/.local/bin/semantic-release
release: sr-install
$(SEMREL_PATH) release
sr-install:
[ -f ${SEMREL_PATH} ] || ./install-semantic-release.sh ${SEMREL_PATH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment