char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
4d19b2876
char/aliceai-t5-moe
1name : UI Publish 2 3on : 4workflow_call : 5inputs : 6version_tag : 7description : 'Version tag to publish under (e.g., b1234)' 8required : true 9type : string 10secrets : 11hf_token : 12description : 'Hugging Face token with write access' 13required : true 14 15jobs : 16build : 17name : Build static output 18uses : ./.github/workflows/ui-build.yml 19 20publish : 21name : Publish UI Static Output 22needs : build 23runs-on : ubuntu-slim 24 25permissions : 26contents : read 27 28env : 29HF_BUCKET_NAME : ${{ vars.HF_BUCKET_UI_STATIC_OUTPUT }} 30 31steps : 32- name : Checkout code 33uses : actions/checkout@v6 34with : 35fetch-depth : 1 36 37- name : Download UI build artifact 38uses : actions/download-artifact@v7 39with : 40name : llama-ui.zip 41path : tools/ui/dist/ 42 43- name : Create distribution archive 44run : | 45tar -czf dist.tar.gz -C tools/ui/dist . 46sha256sum dist.tar.gz > dist.tar.gz.sha256 47mv dist.tar.gz dist.tar.gz.sha256 tools/ui/dist/ 48 49- name : Install Hugging Face Hub CLI 50run : pip install -U huggingface_hub 51 52- name : Authenticate with Hugging Face 53run : hf auth login --token ${{ secrets.hf_token }} 54 55- name : Sync built files to Hugging Face bucket (version tag) 56run : | 57# Upload the built files to the Hugging Face bucket under the release version 58hf buckets sync tools/ui/dist hf://buckets/ggml-org/${{ env.HF_BUCKET_NAME }}/${{ inputs.version_tag }} --delete --quiet 59 60- name : Sync built files to Hugging Face bucket (latest) 61run : | 62# Also upload to the 'latest' directory for fallback downloads 63hf buckets sync tools/ui/dist hf://buckets/ggml-org/${{ env.HF_BUCKET_NAME }}/latest --delete --quiet 64 65- name : Verify upload 66run : | 67# List the files in the bucket to verify the upload 68hf buckets list hf://buckets/ggml-org/${{ env.HF_BUCKET_NAME }}/${{ inputs.version_tag }} -R -h 69 70- name : Clean up root-level files 71run : | 72 # Clean up any old root-level files from previous non-versioned deployments 73 hf buckets rm ggml-org/${{ env.HF_BUCKET_NAME }}/index.html --yes 2>/dev/null || true 74 hf buckets rm ggml-org/${{ env.HF_BUCKET_NAME }}/bundle.js --yes 2>/dev/null || true 75 hf buckets rm ggml-org/${{ env.HF_BUCKET_NAME }}/bundle.css --yes 2>/dev/null || true