diff --git a/.github/workflows/kcpp-build-release-linux-oldpc.yaml b/.github/workflows/kcpp-build-release-linux-oldpc.yaml index 52b74a232..0b47d2abd 100644 --- a/.github/workflows/kcpp-build-release-linux-oldpc.yaml +++ b/.github/workflows/kcpp-build-release-linux-oldpc.yaml @@ -17,6 +17,7 @@ env: jobs: linux: runs-on: ubuntu-22.04 + permissions: write-all container: image: ubuntu:20.04 options: --privileged @@ -60,3 +61,21 @@ jobs: with: name: kcpp_linux_binary path: dist/ + + - name: Install GitHub CLI + run: | + apt-get update + apt-get install -y curl + curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \ + | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg + chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg + echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \ + | tee /etc/apt/sources.list.d/github-cli.list > /dev/null + apt-get update + apt-get install -y gh + + - name: Upload to GitHub Rolling Release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release upload rolling dist/koboldcpp-linux-x64-oldpc --clobber --repo ${{ github.repository }} \ No newline at end of file diff --git a/.github/workflows/kcpp-build-release-linux-rocm.yaml b/.github/workflows/kcpp-build-release-linux-rocm.yaml index 0ecbbad6a..07b1372a4 100644 --- a/.github/workflows/kcpp-build-release-linux-rocm.yaml +++ b/.github/workflows/kcpp-build-release-linux-rocm.yaml @@ -62,7 +62,7 @@ jobs: name: kcpp_linux_binary path: ${{ github.workspace }}/dist/ - - name: Upload to GitHub Release + - name: Upload to GitHub Rolling Release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | diff --git a/.github/workflows/kcpp-build-release-linux.yaml b/.github/workflows/kcpp-build-release-linux.yaml index 44b785df6..4d7558648 100644 --- a/.github/workflows/kcpp-build-release-linux.yaml +++ b/.github/workflows/kcpp-build-release-linux.yaml @@ -73,7 +73,7 @@ jobs: apt-get update apt-get install -y gh - - name: Upload to GitHub Release + - name: Upload to GitHub Rolling Release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | diff --git a/.github/workflows/kcpp-build-release-macos.yaml b/.github/workflows/kcpp-build-release-macos.yaml index 18b378059..bfed75028 100644 --- a/.github/workflows/kcpp-build-release-macos.yaml +++ b/.github/workflows/kcpp-build-release-macos.yaml @@ -14,6 +14,7 @@ env: jobs: osx: runs-on: macos-14 + permissions: write-all steps: - name: Clone id: checkout @@ -50,3 +51,8 @@ jobs: name: kcpp_mac_binary path: dist/ + - name: Upload to GitHub Rolling Release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release upload rolling dist/koboldcpp-mac-arm64 --clobber diff --git a/.github/workflows/kcpp-build-release-win-oldpc.yaml b/.github/workflows/kcpp-build-release-win-oldpc.yaml index df14f597a..8b33bf1f6 100644 --- a/.github/workflows/kcpp-build-release-win-oldpc.yaml +++ b/.github/workflows/kcpp-build-release-win-oldpc.yaml @@ -14,6 +14,7 @@ env: jobs: windows: runs-on: windows-2022 + permissions: write-all steps: - name: Clone id: checkout @@ -128,3 +129,9 @@ jobs: with: name: kcpp_windows_pyinstallers path: dist/ + + - name: Upload to GitHub Rolling Release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release upload rolling dist/koboldcpp-oldpc.exe --clobber diff --git a/.github/workflows/kcpp-build-release-win.yaml b/.github/workflows/kcpp-build-release-win.yaml index b0dd97d02..9ca1220a7 100644 --- a/.github/workflows/kcpp-build-release-win.yaml +++ b/.github/workflows/kcpp-build-release-win.yaml @@ -136,7 +136,7 @@ jobs: run: | echo "If you cannot compile vulkan shaders yourself with glslc, you can manually patch in precompiled vulkan shader source files. Copy ggml-vulkan-shaders.cpp and ggml-vulkan-shaders.hpp to the ggml/src subdirectory in KoboldCpp source files before building." > vulkan-readme.txt - - name: Upload to GitHub Release + - name: Upload to GitHub Rolling Release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: |