Github workflow error #214700
Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
Removing Push a snapshot with no history instead. An orphan branch has exactly one commit, so only the files in it are sent. I checked this with a local test repo: after a normal push the deleted PNG is still in the remote, after an orphan push it is not. In the deploy step: - name: Deploy to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git checkout --orphan hf-deploy
git rm -r --cached --ignore-unmatch docs
git -c user.name="ci" -c user.email="ci@example.com" commit -m "deploy"
git push --force "https://YOUR_USER:${HF_TOKEN}@huggingface.co/spaces/YOUR_USER/YOUR_SPACE" hf-deploy:main
If the app itself needs images or other binaries at runtime, they will be rejected the same way. Either leave them out like |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
Body
I have create a Travel AI agent ,im facing error with the deployment :
The CI failure is in the Hugging Face deployment step, not Python tests or frontend build:
Backend tests pass.
Frontend lint/tests/build pass.
Deploy fails when pushing the Docker app to the Hugging Face Space.
The latest fix removes docs/ from the deployment commit, but it keeps the original Git history. Hugging Face can still reject binaries such as docs/architecture.png from that history.
Guidelines
All reactions