Spaces:
Sleeping
Sleeping
Add CI/CD deploy workflow for Hugging Face Spaces
Browse files- .github/workflows/deploy.yml +5 -4
- .gitignore +1 -0
.github/workflows/deploy.yml
CHANGED
|
@@ -11,9 +11,10 @@ jobs:
|
|
| 11 |
steps:
|
| 12 |
- uses: actions/checkout@v3
|
| 13 |
|
| 14 |
-
- name:
|
|
|
|
|
|
|
| 15 |
run: |
|
| 16 |
-
git
|
| 17 |
-
git
|
| 18 |
-
git remote add hf https://klasta:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Klasta/testing_spaces || true
|
| 19 |
git push hf main --force
|
|
|
|
| 11 |
steps:
|
| 12 |
- uses: actions/checkout@v3
|
| 13 |
|
| 14 |
+
- name: Deploy to Hugging Face Space
|
| 15 |
+
env:
|
| 16 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 17 |
run: |
|
| 18 |
+
git remote remove hf || true
|
| 19 |
+
git remote add hf https://klasta:${HF_TOKEN}@huggingface.co/spaces/Klasta/testing_spaces
|
|
|
|
| 20 |
git push hf main --force
|
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__pycache__
|