Spaces:
Build error
Build error
Thomas (Tom) Gardos
commited on
Commit
•
6040dc8
1
Parent(s):
465c1fa
Update push_to_hf_space.yml
Browse filesMake the same update to this on dev_branch to avoid a future merge conflict
.github/workflows/push_to_hf_space.yml
CHANGED
@@ -1,19 +1,21 @@
|
|
1 |
-
name:
|
2 |
|
3 |
on:
|
4 |
push:
|
5 |
-
branches:
|
6 |
-
|
|
|
|
|
7 |
|
8 |
jobs:
|
9 |
-
|
10 |
runs-on: ubuntu-latest
|
11 |
steps:
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
1 |
+
name: Push Production to HuggingFace
|
2 |
|
3 |
on:
|
4 |
push:
|
5 |
+
branches: [main]
|
6 |
+
|
7 |
+
# run this workflow manuall from the Actions tab
|
8 |
+
workflow_dispatch:
|
9 |
|
10 |
jobs:
|
11 |
+
sync-to-hub:
|
12 |
runs-on: ubuntu-latest
|
13 |
steps:
|
14 |
+
- uses: actions/checkout@v4
|
15 |
+
with:
|
16 |
+
fetch-depth: 0
|
17 |
+
lfs: true
|
18 |
+
- name: Deploy Production (main) to HuggingFace
|
19 |
+
env:
|
20 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
21 |
+
run: git push --force https://trgardos:$HF_TOKEN@huggingface.co/spaces/dl4ds/dl4ds_tutor main:main
|