Spaces:
Running
Running
bradduy
commited on
Commit
·
cad58f1
1
Parent(s):
e8764f3
remove
Browse files- .github/workflows/hf.yml +15 -3
.github/workflows/hf.yml
CHANGED
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
jobs:
|
2 |
sync-to-hub:
|
3 |
runs-on: ubuntu-latest
|
@@ -5,10 +15,12 @@ jobs:
|
|
5 |
- uses: actions/checkout@v3
|
6 |
with:
|
7 |
fetch-depth: 0
|
8 |
-
lfs: true
|
9 |
-
|
|
|
10 |
env:
|
11 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
12 |
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|
13 |
SPACE_NAME: ${{ secrets.SPACE_NAME }}
|
14 |
-
run:
|
|
|
|
1 |
+
name: Sync to Hugging Face
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- '**' # This will trigger the workflow for all branches
|
7 |
+
pull_request:
|
8 |
+
branches:
|
9 |
+
- '**' # This will trigger the workflow for all branches on PRs (if you want this too)
|
10 |
+
|
11 |
jobs:
|
12 |
sync-to-hub:
|
13 |
runs-on: ubuntu-latest
|
|
|
15 |
- uses: actions/checkout@v3
|
16 |
with:
|
17 |
fetch-depth: 0
|
18 |
+
lfs: true # Ensure large files are fetched if you're using Git LFS
|
19 |
+
|
20 |
+
- name: Push to Hugging Face Space
|
21 |
env:
|
22 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
23 |
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|
24 |
SPACE_NAME: ${{ secrets.SPACE_NAME }}
|
25 |
+
run: |
|
26 |
+
git push https://$HF_USERNAME:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME main
|