Spaces:
Sleeping
Sleeping
Commit
·
5e27b5c
1
Parent(s):
ed0c183
fixing workflow error
Browse files
.github/workflows/deploy_to_hf.yml
CHANGED
|
@@ -1,16 +1,22 @@
|
|
| 1 |
-
name:
|
|
|
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches:
|
| 5 |
- main
|
|
|
|
|
|
|
| 6 |
jobs:
|
| 7 |
-
|
| 8 |
runs-on: ubuntu-latest
|
| 9 |
steps:
|
| 10 |
- uses: actions/checkout@v3
|
| 11 |
-
- name: Push to Hugging Face Space
|
| 12 |
-
uses: huggingface/hub-actions@v1
|
| 13 |
with:
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Sync to Hugging Face Space
|
| 2 |
+
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
branches:
|
| 6 |
- main
|
| 7 |
+
workflow_dispatch:
|
| 8 |
+
|
| 9 |
jobs:
|
| 10 |
+
sync-to-hub:
|
| 11 |
runs-on: ubuntu-latest
|
| 12 |
steps:
|
| 13 |
- uses: actions/checkout@v3
|
|
|
|
|
|
|
| 14 |
with:
|
| 15 |
+
fetch-depth: 0
|
| 16 |
+
lfs: true
|
| 17 |
+
- name: Push to hub
|
| 18 |
+
env:
|
| 19 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 20 |
+
run: |
|
| 21 |
+
git remote add space https://huggingface.co/spaces/Mostafa174/Topic_Modeling_AI
|
| 22 |
+
git push --force space main
|