Skip to content

Add GitHub Action to redeploy the HuggingFace Space on merge to main#177

Merged
marota merged 1 commit into
mainfrom
claude/festive-fermi-99fk9c
Jun 23, 2026
Merged

Add GitHub Action to redeploy the HuggingFace Space on merge to main#177
marota merged 1 commit into
mainfrom
claude/festive-fermi-99fk9c

Conversation

@marota

@marota marota commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

A new workflow (.github/workflows/deploy-huggingface.yml) runs the same orphan-snapshot push that deploy/huggingface/SETUP.md documents — squash the current tree to one history-free commit (HF rejects the >10 MiB .xiidm blobs in branch history) and force-push it to the Space's main — automatically on every merge to main (plus manual workflow_dispatch).

It is inert until the repo sets the HF_TOKEN secret + HF_SPACE variable (and optional HF_USERNAME for org Spaces), so merging it changes nothing until opted in. LFS objects already on the Space are reused, so repeat deploys only upload what changed. SETUP.md documents the required secrets/variables and the opt-in.

Claude-Session: https://claude.ai/code/session_01Re86Rgg2KqgwRigRPFTXnY

A new workflow (.github/workflows/deploy-huggingface.yml) runs the same
orphan-snapshot push that deploy/huggingface/SETUP.md documents — squash
the current tree to one history-free commit (HF rejects the >10 MiB
.xiidm blobs in branch history) and force-push it to the Space's main —
automatically on every merge to main (plus manual workflow_dispatch).

It is inert until the repo sets the HF_TOKEN secret + HF_SPACE variable
(and optional HF_USERNAME for org Spaces), so merging it changes nothing
until opted in. LFS objects already on the Space are reused, so repeat
deploys only upload what changed. SETUP.md documents the required
secrets/variables and the opt-in.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Re86Rgg2KqgwRigRPFTXnY
@marota marota merged commit 1749f38 into main Jun 23, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants