chore(ci): remove raw binaries from build after packaging
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:
parent
3f293d1c4e
commit
30b07df5a4
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user