fix(ci): support release updating with gh release upload --clobber

This commit is contained in:
John Smith
2026-08-21 13:09:36 -04:00
parent 7e2af87bb8
commit fa0a60c354
2 changed files with 24 additions and 12 deletions
+14 -8
View File
@@ -320,14 +320,20 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG="${{ steps.tag.outputs.tag }}"
gh release create "$TAG" \
--title "CachyLLama $TAG (Multi-Backend)" \
--notes "### CachyLLama Multi-Backend Release $TAG
- **Vulkan RADV**: Linux AMD APU / dGPU acceleration
- **CPU**: Linux & Windows x64 / ARM64
- **CUDA**: NVIDIA GPU support (sm_75 to sm_121)
- **Metal**: Apple Silicon macOS acceleration" \
./release-files/*
if gh release view "$TAG" >/dev/null 2>&1; then
echo "Release $TAG already exists. Uploading/updating release assets with --clobber..."
gh release upload "$TAG" ./release-files/* --clobber
else
echo "Creating new release $TAG..."
gh release create "$TAG" \
--title "CachyLLama $TAG (Multi-Backend)" \
--notes "### CachyLLama Multi-Backend Release $TAG
- **Vulkan RADV**: Linux AMD APU / dGPU acceleration
- **CPU**: Linux & Windows x64 / ARM64
- **CUDA**: NVIDIA GPU support (sm_75 to sm_121)
- **Metal**: Apple Silicon macOS acceleration" \
./release-files/*
fi
- name: Trigger Homebrew Tap Formula Update
if: success()
+10 -4
View File
@@ -180,7 +180,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG="${{ steps.tag.outputs.tag }}"
gh release create "llama-ai-$TAG" \
--title "llama-ai $TAG Turnkey Bundle" \
--notes "Turnkey distribution bundle for llama-ai with pre-compiled CachyLLama binaries, solver, and runner scripts." \
./release-bundles/*
if gh release view "llama-ai-$TAG" >/dev/null 2>&1; then
echo "Release llama-ai-$TAG already exists. Uploading/updating release assets with --clobber..."
gh release upload "llama-ai-$TAG" ./release-bundles/* --clobber
else
echo "Creating new release llama-ai-$TAG..."
gh release create "llama-ai-$TAG" \
--title "llama-ai $TAG Turnkey Bundle" \
--notes "Turnkey distribution bundle for llama-ai with pre-compiled CachyLLama binaries, solver, and runner scripts." \
./release-bundles/*
fi