mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
24 lines
495 B
Bash
Executable File
24 lines
495 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
if ! [[ "$0" =~ scripts/build.release.sh ]]; then
|
|
echo "must be run from repository root"
|
|
exit 255
|
|
fi
|
|
|
|
# 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
|
|
|
|
# to test without git tags
|
|
# goreleaser release --config .goreleaser.yml --rm-dist --skip-announce --skip-publish --snapshot
|