Spaces:
Running
Running
Merge branch 'hf-rolling' of https://github.com/alamin655/websurfx into hf-rolling
Browse files
.github/workflows/deploy-hf.yml
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
name: Sync to Hugging Face hub
|
|
|
2 |
on:
|
3 |
push:
|
4 |
branches: [hf-rolling]
|
@@ -10,11 +11,25 @@ jobs:
|
|
10 |
sync-to-hub:
|
11 |
runs-on: ubuntu-latest
|
12 |
steps:
|
13 |
-
-
|
|
|
14 |
with:
|
15 |
fetch-depth: 0
|
16 |
lfs: true
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
env:
|
19 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
-
run:
|
|
|
|
1 |
name: Sync to Hugging Face hub
|
2 |
+
|
3 |
on:
|
4 |
push:
|
5 |
branches: [hf-rolling]
|
|
|
11 |
sync-to-hub:
|
12 |
runs-on: ubuntu-latest
|
13 |
steps:
|
14 |
+
- name: Checkout Repository
|
15 |
+
uses: actions/checkout@v2
|
16 |
with:
|
17 |
fetch-depth: 0
|
18 |
lfs: true
|
19 |
+
|
20 |
+
- name: Configure Git
|
21 |
+
run: |
|
22 |
+
git config user.email "${{ secrets.EMAIL }}"
|
23 |
+
git config user.name "${{ secrets.USERNAME }}"
|
24 |
+
|
25 |
+
- name: Pull from Hugging Face Space
|
26 |
+
env:
|
27 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
28 |
+
run: |
|
29 |
+
git pull --allow-unrelated-histories https://alamin655:[email protected]/spaces/alamin655/spacex main
|
30 |
+
|
31 |
+
- name: Push to Hugging Face Space
|
32 |
env:
|
33 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
34 |
+
run: |
|
35 |
+
git push https://alamin655:[email protected]/spaces/alamin655/spacex hf-rolling:main
|