Skip to content

Commit

Permalink
fix script for both releases confs
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero committed Sep 27, 2022
1 parent 3aec3f6 commit c54d581
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/build.release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@ if ! [[ "$0" =~ scripts/build.release.sh ]]; then
exit 255
fi

if [ "${1-}" != linux ] && [ "${1-}" != darwin ]; then
echo "arg must be linux or darwin"
exit 255
fi
os=${1-}

# https://goreleaser.com/install/
go install -v github.com/goreleaser/goreleaser@latest

# e.g.,
# git tag 1.0.0
#goreleaser release --config .goreleaser.yml --skip-announce --skip-publish
#goreleaser release --config .goreleaser-$os.yml --skip-announce --skip-publish

# to test without git tags
goreleaser release --config .goreleaser.yml --rm-dist --skip-announce --skip-publish --snapshot
goreleaser release --config .goreleaser-$os.yml --rm-dist --skip-announce --skip-publish --snapshot

0 comments on commit c54d581

Please sign in to comment.