Spaces:
Sleeping
Sleeping
GitHub Actions commited on
Commit ·
2000abc
1
Parent(s): 9264925
chore: sync to huggingface (clean)
Browse files
.github/workflows/sync_to_hf.yml
DELETED
|
@@ -1,35 +0,0 @@
|
|
| 1 |
-
name: Sync to Hugging Face Spaces
|
| 2 |
-
|
| 3 |
-
on:
|
| 4 |
-
push:
|
| 5 |
-
branches: [main]
|
| 6 |
-
workflow_dispatch:
|
| 7 |
-
|
| 8 |
-
jobs:
|
| 9 |
-
sync-to-hub:
|
| 10 |
-
runs-on: ubuntu-latest
|
| 11 |
-
steps:
|
| 12 |
-
- name: Checkout Repository
|
| 13 |
-
uses: actions/checkout@v4
|
| 14 |
-
with:
|
| 15 |
-
fetch-depth: 0
|
| 16 |
-
lfs: true
|
| 17 |
-
|
| 18 |
-
- name: Install Git LFS
|
| 19 |
-
run: git lfs install
|
| 20 |
-
|
| 21 |
-
- name: Push to Hugging Face
|
| 22 |
-
env:
|
| 23 |
-
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 24 |
-
run: |
|
| 25 |
-
# Configure Git
|
| 26 |
-
git config --global user.email "actions@github.com"
|
| 27 |
-
git config --global user.name "GitHub Actions"
|
| 28 |
-
|
| 29 |
-
# Remove GitHub-specific workflows to keep HF clean
|
| 30 |
-
rm -rf .github
|
| 31 |
-
git add .
|
| 32 |
-
git commit -m "chore: sync to huggingface (clean)" || echo "No changes to commit"
|
| 33 |
-
|
| 34 |
-
# Force push to HuggingFace Spaces
|
| 35 |
-
git push --force https://0xarchit:$HF_TOKEN@huggingface.co/spaces/0xarchit/ml-assignment main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|