a11oy / .github /workflows /huggingface.yml
betterwithage's picture
sync(space): full source mirror — resolve all GitHub<->Space drift (CTO)
a6a5d8e verified
Raw
History Blame
1.79 kB
name: Publish Hugging Face Payload
on:
workflow_dispatch:
inputs:
repo_id:
description: Hugging Face repository id
required: true
default: SZLHOLDINGS/a11oy-v19-substrate
repo_type:
description: Hugging Face repository type
required: true
default: model
permissions:
contents: read
jobs:
publish:
name: Build and upload payload
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
with:
version: 10.33.3
- name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22
cache: pnpm
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: '3.13'
- name: Install Node dependencies
run: pnpm install --frozen-lockfile
- name: Validate doctrine and payload
run: |
pnpm test:doctrine
pnpm typecheck:doctrine
pnpm build:doctrine
pnpm ecosystem:audit
pnpm ecosystem:readiness
pnpm payload:verify
- name: Prepare Hugging Face payload
run: pnpm payload:huggingface
- name: Install Hugging Face client
run: python -m pip install --upgrade huggingface_hub
- name: Upload payload
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: >-
python3 scripts/publish_huggingface_payload.py
--repo-id "${{ inputs.repo_id }}"
--repo-type "${{ inputs.repo_type }}"