icns

Easily create .icns files (Mac Icons) with this Go library or the included CLI.
Log | Files | Refs | LICENSE

commit 179b999fbe0d75cc817805ab674f9df82f662b5f
parent 1e2a23a5cbf0098324ecb9bf6ed2fb64920971a8
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date:   Fri,  8 Apr 2022 10:59:19 +0800

build: release script

Simple script that does a tag and release.

If the current commit is untagged and a tag is provided as
the first argument, the current commit gets tagged before
invoking goreleaser.

Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>

Diffstat:
Arelease.sh | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/release.sh b/release.sh @@ -0,0 +1,15 @@ +tag=$1 +current="$(git tag --points-at HEAD)" + +if [[ -z "$tag" && -z $current ]] +then + echo "commit not tagged and no tag provided" + exit 1 +fi + +if [[ ! -z "$tag" && -z $current ]] +then + git tag $tag -m "$tag" +fi + +env GITHUB_TOKEN=$(pass goreleaser/github-token) goreleaser