Spaces:
Sleeping
Sleeping
Update main.yml
Browse files- .github/workflows/main.yml +8 -12
.github/workflows/main.yml
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
name: Sync to Hugging Face space
|
|
|
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches: [main]
|
| 5 |
|
| 6 |
-
#run this workflow manually from the actions tab
|
| 7 |
workflow_dispatch:
|
| 8 |
-
|
| 9 |
jobs:
|
| 10 |
sync-to-hub:
|
| 11 |
runs-on: ubuntu-latest
|
|
@@ -14,16 +14,12 @@ jobs:
|
|
| 14 |
with:
|
| 15 |
fetch-depth: 0
|
| 16 |
|
| 17 |
-
|
| 18 |
-
- name: add remote
|
| 19 |
env:
|
| 20 |
HF: ${{ secrets.HG }}
|
| 21 |
-
run:
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
env:
|
| 25 |
-
HF: ${{ secrets.HG }}
|
| 26 |
-
run: git push --force space main
|
| 27 |
-
|
| 28 |
|
| 29 |
-
|
|
|
|
|
|
| 1 |
name: Sync to Hugging Face space
|
| 2 |
+
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
branches: [main]
|
| 6 |
|
|
|
|
| 7 |
workflow_dispatch:
|
| 8 |
+
|
| 9 |
jobs:
|
| 10 |
sync-to-hub:
|
| 11 |
runs-on: ubuntu-latest
|
|
|
|
| 14 |
with:
|
| 15 |
fetch-depth: 0
|
| 16 |
|
| 17 |
+
- name: Set up remote
|
|
|
|
| 18 |
env:
|
| 19 |
HF: ${{ secrets.HG }}
|
| 20 |
+
run: |
|
| 21 |
+
git remote remove space || true
|
| 22 |
+
git remote add space https://ashandilgith:${HF}@huggingface.co/spaces/ashandilgith/demo2
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
- name: Push to Hugging Face Space
|
| 25 |
+
run: git push --force space main
|