File tree Expand file tree Collapse file tree 1 file changed +24
-8
lines changed Expand file tree Collapse file tree 1 file changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,34 @@ jobs:
11
11
upload-resourcepack :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
+ # First install Git LFS
15
+ - name : Install Git LFS
16
+ run : |
17
+ sudo apt-get update
18
+ sudo apt-get install -y git-lfs
19
+
20
+ # Properly checkout with LFS
14
21
- name : Checkout repository
15
22
uses : actions/checkout@v3
16
-
17
- - name : Verify resourcepack.zip exists
23
+ with :
24
+ lfs : true
25
+ fetch-depth : 0
26
+
27
+ # Pull LFS files explicitly
28
+ - name : Pull LFS files
29
+ run : |
30
+ git lfs install
31
+ git lfs pull
32
+
33
+ # Verify the file exists
34
+ - name : Verify resourcepack.zip
18
35
run : |
36
+ echo "Listing all files:"
19
37
ls -la
20
- if [ -f "resourcepack.zip" ]; then
21
- echo "resourcepack.zip exists!"
22
- else
23
- echo "resourcepack.zip NOT FOUND!"
24
- exit 1
25
- fi
38
+ echo "LFS files:"
39
+ git lfs ls-files
40
+ echo "Checking resourcepack.zip:"
41
+ ls -la resourcepack.zip || echo "File not found"
26
42
27
43
- name : Upload resourcepack as artifact
28
44
uses : actions/upload-artifact@v3
You can’t perform that action at this time.
0 commit comments