Skip to content

Update hf deploy#29

Merged
qchapp merged 6 commits into
mainfrom
update-hf-deploy
Apr 29, 2026
Merged

Update hf deploy#29
qchapp merged 6 commits into
mainfrom
update-hf-deploy

Conversation

@qchapp
Copy link
Copy Markdown
Member

@qchapp qchapp commented Apr 29, 2026

This pull request updates the GitHub Actions workflow for deploying to Hugging Face Spaces. The main improvements focus on cleaning up the deployment process, ensuring that assets are excluded, and making the deployment branch more isolated and reproducible.

Workflow and deployment process improvements:

  • The workflow now creates a clean, orphan hf-deploy branch for deployment, ensuring that only the necessary files are included and that the assets folder is fully excluded from the Hugging Face deployment. [1] [2]
  • The deployment now pushes from the hf-deploy branch to the Hugging Face Space, rather than pushing directly from main, providing a cleaner separation between source and deployable code.
  • The workflow configuration is simplified and clarified, including a more general workflow name and improved YAML formatting.
  • The steps for generating the Hugging Face-specific README.md are streamlined, and the process for committing and pushing is made more robust. [1] [2]

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GitHub Actions workflow that deploys this repo to the Hugging Face Space by creating an isolated deploy branch and excluding non-deployable content (notably assets/).

Changes:

  • Simplifies the workflow name/trigger configuration and checkout settings.
  • Builds a Hugging Face–specific README.md during CI.
  • Creates and force-pushes an orphan hf-deploy branch to the Space’s main branch, after removing assets/.

Comment thread .github/workflows/deploy-to-hf.yml Outdated
Comment thread .github/workflows/deploy-to-hf.yml Outdated
@qchapp qchapp merged commit 47fd106 into main Apr 29, 2026
3 checks passed
@qchapp qchapp deleted the update-hf-deploy branch April 29, 2026 08:59
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.

3 participants