Bachstelze commited on
Commit
e4134d1
·
1 Parent(s): ebb9152

new action

Browse files
.github/workflows/push_to_hf_space.yml CHANGED
@@ -1,19 +1,23 @@
1
- name: Sync with Hugging Face Hub
2
-
3
  on:
4
  push:
5
- branches:
6
- - main
 
 
7
 
8
  jobs:
9
- build:
10
  runs-on: ubuntu-latest
11
  steps:
12
- - name: Sync with Hugging Face
13
- uses: nateraw/huggingface-sync-action@v0.0.4
14
- with:
15
- github_repo_id: othmanreem/Data-intensive-systems
16
- huggingface_repo_id: lnuDataProject/A1
17
- repo_type: space
18
- space_sdk: gradio
19
- hf_token: ${{ secrets.HF_TOKEN }}
 
 
 
 
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
12
  steps:
13
+ - uses: actions/checkout@v3
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://Bachstelze:HF_TOKEN@huggingface.co/spaces/lnuDataProject/A1 main
21
+
22
+
23
+