chore: make releases workflow-only

This commit is contained in:
Micheal Wilkinson
2026-03-20 19:23:43 +00:00
parent fd7660721a
commit 5cb0010531
5 changed files with 12 additions and 33 deletions

View File

@@ -62,7 +62,13 @@ jobs:
- name: Prepare release files
run: |
set -euo pipefail
./script/prepare-release.sh "$RELEASE_VERSION"
go run ./cmd/vociferate \
--root . \
--version "$RELEASE_VERSION" \
--date "$(date -u +%F)" \
--version-file internal/vociferate/version/version.go \
--version-pattern 'const String = "([^"]+)"' \
--changelog changelog.md
- name: Run tests
run: |
@@ -181,15 +187,11 @@ jobs:
normalized_version="${RELEASE_VERSION#v}"
mkdir -p dist
for target in darwin/amd64 darwin/arm64 linux/amd64 linux/arm64 windows/amd64 windows/arm64; do
for target in linux/amd64 linux/arm64; do
os="${target%/*}"
arch="${target#*/}"
ext=""
if [[ "$os" == "windows" ]]; then
ext=".exe"
fi
bin="vociferate_${normalized_version}_${os}_${arch}${ext}"
bin="vociferate_${normalized_version}_${os}_${arch}"
GOOS="$os" GOARCH="$arch" go build -trimpath -ldflags="-s -w" -o "dist/${bin}" ./cmd/vociferate
done