katospiegel commited on
Commit
1fa6566
·
1 Parent(s): af77f8b

feat: Alternative CI Workflow

Browse files
Files changed (1) hide show
  1. .github/workflows/push_to_hf.yml +9 -16
.github/workflows/push_to_hf.yml CHANGED
@@ -13,20 +13,13 @@ jobs:
13
  - name: Checkout repository
14
  uses: actions/checkout@v3
15
 
16
- - name: Set up Python
17
- uses: actions/setup-python@v4
18
- with:
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
- python -m huggingface_hub.cli upload_folder \
30
- --repo-id SDSC/digiwild \
31
- --path "./" \
32
- --branch main
 
 
 
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