patrickacraig commited on
Commit
6eb4b60
·
1 Parent(s): 7e89065

updating yaml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yaml +6 -5
.github/workflows/main.yaml CHANGED
@@ -1,8 +1,11 @@
1
- name: SyncToHuggingFaceSpace
2
  on:
3
  push:
4
  branches: [main]
5
 
 
 
 
6
  jobs:
7
  sync-to-hub:
8
  runs-on: ubuntu-latest
@@ -11,9 +14,7 @@ jobs:
11
  with:
12
  fetch-depth: 0
13
  lfs: true
14
- - name: Push to Hugging Face Space
15
  env:
16
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
17
- run: |
18
- git remote add space https://huggingface.co/spaces/patrickacraig/docs-scraper
19
- git push space main
 
1
+ name: Sync to Hugging Face hub
2
  on:
3
  push:
4
  branches: [main]
5
 
6
+ # to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
  jobs:
10
  sync-to-hub:
11
  runs-on: ubuntu-latest
 
14
  with:
15
  fetch-depth: 0
16
  lfs: true
17
+ - name: Push to hub
18
  env:
19
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
+ run: git push https://patrickacraig:[email protected]/spaces/patrickacraig/docs-scraper main