Spaces:
Running
on
Zero
Running
on
Zero
Merge remote-tracking branch 'origin/main'
Browse files- .gitattributes +1 -0
- .github/workflows/sync_to_hub.yml +17 -5
.gitattributes
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
app/assets/images/*.png filter=lfs diff=lfs merge=lfs -text
|
.github/workflows/sync_to_hub.yml
CHANGED
@@ -5,11 +5,23 @@ jobs:
|
|
5 |
sync-to-hub:
|
6 |
runs-on: ubuntu-latest
|
7 |
steps:
|
8 |
-
-
|
|
|
9 |
with:
|
10 |
-
fetch-depth: 0
|
11 |
-
lfs: true
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
env:
|
14 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
15 |
-
run:
|
|
|
|
|
|
5 |
sync-to-hub:
|
6 |
runs-on: ubuntu-latest
|
7 |
steps:
|
8 |
+
- name: Checkout repository
|
9 |
+
uses: actions/checkout@v3
|
10 |
with:
|
11 |
+
fetch-depth: 0
|
12 |
+
lfs: true
|
13 |
+
|
14 |
+
- name: Install Git LFS
|
15 |
+
run: git lfs install
|
16 |
+
|
17 |
+
- name: Debug LFS Tracking
|
18 |
+
run: |
|
19 |
+
cat .gitattributes
|
20 |
+
git lfs ls-files
|
21 |
+
|
22 |
+
- name: Push to Hugging Face
|
23 |
env:
|
24 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
25 |
+
run: |
|
26 |
+
git lfs push --all https://Riksarkivet:[email protected]/spaces/Riksarkivet/htr_demo
|
27 |
+
git push --force https://Riksarkivet:[email protected]/spaces/Riksarkivet/htr_demo main
|