Spaces:
Configuration error
Configuration error
github-actions commited on
Commit ·
27f1578
1
Parent(s): 39b03f0
Fix shallow clone issue: add fetch-depth: 0 to checkout
Browse files- .github/workflows/deploy.yml +0 -24
.github/workflows/deploy.yml
CHANGED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
name: Deploy to Hugging Face
|
| 2 |
-
on:
|
| 3 |
-
push:
|
| 4 |
-
branches: [main]
|
| 5 |
-
workflow_dispatch:
|
| 6 |
-
|
| 7 |
-
jobs:
|
| 8 |
-
deploy:
|
| 9 |
-
runs-on: ubuntu-latest
|
| 10 |
-
steps:
|
| 11 |
-
- uses: actions/checkout@v4
|
| 12 |
-
|
| 13 |
-
- name: Setup Git
|
| 14 |
-
run: |
|
| 15 |
-
git config --global user.name "github-actions"
|
| 16 |
-
git config --global user.email "github-actions@github.com"
|
| 17 |
-
|
| 18 |
-
- name: Deploy to Hugging Face
|
| 19 |
-
run: |
|
| 20 |
-
# Add Hugging Face remote with token authentication
|
| 21 |
-
git remote add huggingface https://${{ secrets.HF_USERNAME }}:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/${{ secrets.HF_USERNAME }}/ci-cd-anomaly-detection
|
| 22 |
-
|
| 23 |
-
# Push to Hugging Face
|
| 24 |
-
git push huggingface main --force
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|