common/scripts/run-goreleaser

16 lines
240 B
Plaintext
Raw Normal View History

2023-07-09 00:39:36 +00:00
#!/bin/bash
set -euo pipefail
go install github.com/goreleaser/goreleaser@v1.21.2
2023-07-09 00:39:36 +00:00
DRONE_TAG=${DRONE_TAG-""}
is_snapshot=""
if [ -z "$DRONE_TAG" ]; then
is_snapshot="--snapshot"
fi
goreleaser release $is_snapshot -p 6 --skip-publish