chore(ci): remove raw binaries from build after packaging
All checks were successful
CI / Test (push) Successful in 31s
CI / Lint (push) Successful in 27s
CI / Build (push) Successful in 20s
Release / Create Release (push) Successful in 35s

Add a cleanup step in the release workflow to delete raw binary files for each platform,
retaining only the tar.gz archives, checksums.txt, and install script.
This commit is contained in:
Greg Gauthier 2026-03-02 00:19:10 +00:00
parent 3f293d1c4e
commit 30b07df5a4

View File

@ -45,6 +45,13 @@ jobs:
done done
sha256sum build/grokkit-*.tar.gz | tee build/checksums.txt sha256sum build/grokkit-*.tar.gz | tee build/checksums.txt
cp scripts/grokkit-install.sh build/ cp scripts/grokkit-install.sh build/
# Clean up raw binaries (keep only tars, checksums, sh)
for plat in 'linux/amd64' 'linux/arm64' 'darwin/amd64' 'darwin/arm64' 'windows/amd64'; do
IFS='/' read -r OS ARCH <<< "$plat"
BIN="grokkit-${OS}-${ARCH}"
if [ "$OS" = "windows" ]; then BIN="${BIN}.exe"; fi
rm -f "build/${BIN}"
done
- name: Install dependencies - name: Install dependencies
run: apt update && apt install -y jq run: apt update && apt install -y jq
- name: Create Release & Upload Assets - name: Create Release & Upload Assets