anyantudre commited on
Commit
67117c4
·
1 Parent(s): 8327965
Files changed (1) hide show
  1. .github/workflows/main.yml +11 -12
.github/workflows/main.yml CHANGED
@@ -1,8 +1,13 @@
1
  name: CI to HF
2
 
 
3
  on:
 
4
  push:
5
- branches: [ "main" ] # Change from "master" to "main"
 
 
 
6
 
7
  jobs:
8
  sync-to-hub:
@@ -11,19 +16,13 @@ jobs:
11
  - uses: actions/checkout@v4
12
  with:
13
  fetch-depth: 0
14
-
15
- - name: Add remote
16
  env:
17
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
18
- run: |
19
- git remote add space https://ArissBandoss:[email protected]/spaces/ArissBandoss/DeepFake-Videos-Detection
20
- git fetch space
21
-
22
  - name: Push to hub
23
  env:
24
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
25
- run: |
26
- git config --global user.name "GitHub Actions"
27
- git config --global user.email "[email protected]"
28
- git pull space main --rebase # Change from "master" to "main"
29
- git push https://ArissBandoss:[email protected]/spaces/ArissBandoss/DeepFake-Videos-Detection main # Change from "master" to "main"
 
1
  name: CI to HF
2
 
3
+ # Controls when the workflow will run
4
  on:
5
+ # Triggers the workflow on push events but only for the "main" branch
6
  push:
7
+ branches: [ "main" ]
8
+
9
+ # Allows you to run this workflow manually from the Actions tab
10
+ workflow_dispatch:
11
 
12
  jobs:
13
  sync-to-hub:
 
16
  - uses: actions/checkout@v4
17
  with:
18
  fetch-depth: 0
19
+
20
+ - name: Add remote
21
  env:
22
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
23
+ run: git remote add space https://ArissBandoss:[email protected]/spaces/ArissBandoss/DeepFake-Videos-Detection
24
+
 
 
25
  - name: Push to hub
26
  env:
27
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
28
+ run: git push --force https://ArissBandoss:[email protected]/spaces/ArissBandoss/DeepFake-Videos-Detection main