We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e546d2 commit 036a023Copy full SHA for 036a023
.github/workflows/deploy-to-hf.yml
@@ -42,6 +42,9 @@ jobs:
42
git config --global credential.helper store
43
echo "https://user:${HF_TOKEN}@huggingface.co" > ~/.git-credentials
44
45
+ # Set default branch to main
46
+ git config --global init.defaultBranch main
47
+
48
# Initialize git repository
49
git init
50
git remote add origin https://huggingface.co/spaces/${{ secrets.HUGGINGFACE_SPACE_REPO }}
@@ -64,8 +67,8 @@ jobs:
64
67
git config user.email "actions@github.com"
65
68
git commit -m "Update NemaQuant app from GitHub Actions - ${{ github.sha }}"
66
69
- # Push to Hugging Face Space
- git push origin main
70
+ # Push to Hugging Face Space (force push to handle initial setup)
71
+ git push --force origin main
72
73
- name: Summary
74
run: |
0 commit comments