Commit
·
34e71dd
1
Parent(s):
0c9067f
New Approach 5
Browse files- .github/workflows/main.yml +12 -3
.github/workflows/main.yml
CHANGED
|
@@ -10,13 +10,22 @@ jobs:
|
|
| 10 |
sync-to-hub:
|
| 11 |
runs-on: ubuntu-latest
|
| 12 |
steps:
|
| 13 |
-
# Fetch only the root files
|
| 14 |
- name: Checkout code
|
| 15 |
uses: actions/checkout@v4
|
| 16 |
with:
|
| 17 |
-
sparse-checkout: |
|
| 18 |
-
README.md
|
| 19 |
fetch-depth: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
- name: Add remote
|
| 22 |
env:
|
|
|
|
| 10 |
sync-to-hub:
|
| 11 |
runs-on: ubuntu-latest
|
| 12 |
steps:
|
|
|
|
| 13 |
- name: Checkout code
|
| 14 |
uses: actions/checkout@v4
|
| 15 |
with:
|
|
|
|
|
|
|
| 16 |
fetch-depth: 0
|
| 17 |
+
lfs: true
|
| 18 |
+
|
| 19 |
+
- name: Reset commit
|
| 20 |
+
run: |
|
| 21 |
+
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch "data/*" "indexes/*"' --prune-empty --tag-name-filter cat -- --all
|
| 22 |
+
|
| 23 |
+
- name: LFS Track
|
| 24 |
+
run: |
|
| 25 |
+
git lfs track "data/*" "indexes/*"
|
| 26 |
+
|
| 27 |
+
- name: Checkout LFS objects
|
| 28 |
+
run: git lfs checkout
|
| 29 |
|
| 30 |
- name: Add remote
|
| 31 |
env:
|