diff --git a/.github/workflows/build-cachyllama-all.yml b/.github/workflows/build-cachyllama-all.yml index cba76a7..3764f9c 100644 --- a/.github/workflows/build-cachyllama-all.yml +++ b/.github/workflows/build-cachyllama-all.yml @@ -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() diff --git a/.github/workflows/build-llama-ai-bundle.yml b/.github/workflows/build-llama-ai-bundle.yml index a16feb3..0412efc 100644 --- a/.github/workflows/build-llama-ai-bundle.yml +++ b/.github/workflows/build-llama-ai-bundle.yml @@ -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