Commit
·
1fa6566
1
Parent(s):
af77f8b
feat: Alternative CI Workflow
Browse files
.github/workflows/push_to_hf.yml
CHANGED
@@ -13,20 +13,13 @@ jobs:
|
|
13 |
- name: Checkout repository
|
14 |
uses: actions/checkout@v3
|
15 |
|
16 |
-
- name:
|
17 |
-
|
18 |
-
|
19 |
-
python-version: '3.8'
|
20 |
-
|
21 |
-
- name: Install Hugging Face Hub
|
22 |
-
run: pip install huggingface-hub
|
23 |
-
|
24 |
-
- name: Authenticate to Hugging Face
|
25 |
-
run: huggingface-cli login --token ${{ secrets.HF_TOKEN }}
|
26 |
-
|
27 |
-
- name: Push to Hugging Face
|
28 |
run: |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
13 |
- name: Checkout repository
|
14 |
uses: actions/checkout@v3
|
15 |
|
16 |
+
- name: Clone Hugging Face repository with token
|
17 |
+
env:
|
18 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
run: |
|
20 |
+
git clone https://${{ secrets.HF_USERNAME }}:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/SDSC/digiwild
|
21 |
+
cd digiwild
|
22 |
+
cp -R ../* .
|
23 |
+
git add .
|
24 |
+
git commit -m "Update from main branch"
|
25 |
+
git push origin main
|