Anmol Gupta commited on
Commit
8e1a988
·
unverified ·
1 Parent(s): e952d6b

Update main.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +3 -7
.github/workflows/main.yml CHANGED
@@ -10,14 +10,10 @@ jobs:
10
  sync-to-hub:
11
  runs-on: ubuntu-latest
12
  steps:
13
- - uses: actions/checkout@v2
14
  with:
15
  fetch-depth: 0
16
- - name: Add remote
17
- env:
18
- HF: ${{ secrets.HF_token }}
19
- run: git remote add space https://binarycache:$HF_token@huggingface.co/spaces/binarycache/cxl
20
  - name: Push to hub
21
  env:
22
- HF: ${{ secrets.HF_token }}
23
- run: git push --force https://binarycache:$HF_token@huggingface.co/spaces/binarycache/cxl main
 
10
  sync-to-hub:
11
  runs-on: ubuntu-latest
12
  steps:
13
+ - uses: actions/checkout@v3
14
  with:
15
  fetch-depth: 0
 
 
 
 
16
  - name: Push to hub
17
  env:
18
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: git push https://HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/FULL_SPACE_NAME main