Last active
August 25, 2020 12:18
-
-
Save nij4t/436cbfb5580dda961e14643524fdec8d to your computer and use it in GitHub Desktop.
Makefile for go-semantic-release
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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