subashpoudel commited on
Commit
c9197e9
·
1 Parent(s): 1493eb1

nEXT COMMIT

Browse files
Files changed (1) hide show
  1. .github/workflows/push_to_hf.yaml +6 -1
.github/workflows/push_to_hf.yaml CHANGED
@@ -15,6 +15,11 @@ jobs:
15
  fetch-depth: 0
16
  lfs: true
17
 
 
 
 
 
 
18
  - name: Install Git LFS
19
  run: |
20
  git lfs install
@@ -24,7 +29,7 @@ jobs:
24
  git lfs track "*.pt"
25
  git add .gitattributes
26
  git commit -m "Track binaries with LFS" || echo "No changes"
27
-
28
  - name: Push to hub
29
  env:
30
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
 
15
  fetch-depth: 0
16
  lfs: true
17
 
18
+ - name: Clean cache files
19
+ run: |
20
+ find . -type d -name "__pycache__" -exec rm -rf {} +
21
+ find . -type f -name "*.pyc" -delete
22
+
23
  - name: Install Git LFS
24
  run: |
25
  git lfs install
 
29
  git lfs track "*.pt"
30
  git add .gitattributes
31
  git commit -m "Track binaries with LFS" || echo "No changes"
32
+
33
  - name: Push to hub
34
  env:
35
  HF_TOKEN: ${{ secrets.HF_TOKEN }}