Skip to content

Commit

Permalink
scripts/tag-release.sh: Added
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Rondina committed Nov 1, 2022
1 parent e65d82a commit 6e60bc4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions scripts/tag-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
# Description: Script to tag a new release

GORELEASER_OPTS=${GORELEASER_OPTS:---skip-validate --rm-dist}

main() {

if [ -z "${GITHUB_TOKEN}" ] ; then
echo "Missing GITHUB_TOKEN"
return 1
fi

if [ -z "${GORELEASER_CURRENT_TAG}" ] ; then
echo "Missing GITHUB_TOKEN"
return 1
fi

goreleaser release ${GORELEASER_OPTS} || return 1
return 0
}


main $@
exit $?

0 comments on commit 6e60bc4

Please sign in to comment.