Commit 6da36139e for llama.cpp
commit 6da36139e8ba5978559804c5319b80ae953bb457
Author: Aleksander Grygier <aleksander.grygier@gmail.com>
Date: Wed Nov 18 12:07:23 2026 +0100
ui: run the Storybook deploy on HF Jobs, with a token that can write the Space (#32525)
The deploy failed on master with a 403: HF_TOKEN_UI_STATIC_OUTPUT is
scoped to the UI bucket and cannot write ggml-org/llama-ui-storybook, so
hf upload tried to create the Space. The upload now uses
HF_TOKEN_UI_STORYBOOK when that secret exists, and the job runs on
hf-jobs-cpu-upgrade instead of a GitHub-hosted runner. That image gets
python3-venv from apt for the hf CLI, as the other HF Jobs workflows do.
Assisted-by: Claude (Opus 5.5 Medium)
diff --git a/.github/workflows/ui-storybook.yml b/.github/workflows/ui-storybook.yml
index e757bb05f..fe922b1a2 100644
--- a/.github/workflows/ui-storybook.yml
+++ b/.github/workflows/ui-storybook.yml
@@ -27,7 +27,7 @@ jobs:
deploy:
name: Deploy to Hugging Face Spaces
if: github.repository == 'ggml-org/llama.cpp'
- runs-on: ubuntu-24.04
+ runs-on: hf-jobs-cpu-upgrade:ubuntu26_04
env:
HF_SPACE: ${{ vars.HF_SPACE_UI_STORYBOOK || 'ggml-org/llama-ui-storybook' }}
@@ -67,12 +67,15 @@ jobs:
- name: Install Hugging Face Hub CLI
run: |
+ sudo apt-get update
+ sudo apt-get install -y python3 python3-venv
python3 -m venv .venv-hf
.venv-hf/bin/pip install -U huggingface_hub==1.28.0
- name: Upload to the Space
env:
- HF_TOKEN: ${{ secrets.HF_TOKEN_UI_STATIC_OUTPUT }}
+ # a token with write access to the Space; HF_TOKEN_UI_STATIC_OUTPUT if that one has it
+ HF_TOKEN: ${{ secrets.HF_TOKEN_UI_STORYBOOK || secrets.HF_TOKEN_UI_STATIC_OUTPUT }}
run: |
# --delete '*' removes files the new build no longer has; the Space's .gitattributes is always kept
.venv-hf/bin/hf upload "$HF_SPACE" ui/apps/chat/storybook-static . \