@@ -43,16 +43,23 @@ generate_strings() {
4343random_strings=($( generate_strings 1 16) )
4444clearCache_name=${random_strings[0]} c
4545
46+ echo " [" > deploy/api/build-manifest
47+ echo " " > deploy/api/build-manifest.txt
48+ echo " [" > deploy/api/_just_build-manifest
49+ echo " " > deploy/api/_just_build-manifest.txt
50+
4651echo " $( cat $GITHUB_ACTION_PATH /src/buildManifest_start.js) " > deploy/_just/static/$BUILD_ID /buildManifest.js
4752echo " $( cat $GITHUB_ACTION_PATH /src/_justManifest_start.js) " > deploy/_just/static/$BUILD_ID /_justManifest.js
48- echo " $( cat $GITHUB_ACTION_PATH /src/clearCache.js) " > deploy/_just/static/chunks/$clearCache_name .js
53+ echo " $( cat $GITHUB_ACTION_PATH /src/insert/ clearCache.js) " > deploy/_just/static/chunks/$clearCache_name .js
4954find _just_data -mindepth 1 -print | while read -r path; do
5055 relative_path=${path# _just_data/ }
5156 first_line=$( head -n 1 " $path " )
5257 if [ -f " $path " ]; then
5358 if [[ " $first_line " != " // _just hide" ||
5459 " $first_line " != " // _just doNotModify+hide" ]]; then
5560 echo " _just_Manifest0.push(\" $relative_path \" );" >> deploy/_just/static/$BUILD_ID /_justManifest.js
61+ echo " \" $relative_path \" ," >> deploy/api/_just_build-manifest
62+ echo " $relative_path \n" >> deploy/api/_just_build-manifest.txt
5663 fi
5764 fi
5865done
@@ -140,7 +147,10 @@ find deploy -mindepth 1 -print | while read -r path; do
140147 # Build manifest entry
141148 if [[ " $first_line " != " // _just hide" ||
142149 " $first_line " != " // _just doNotModify+hide" ]]; then
143- echo " _just_buildManifest0.push({\" type\" : \" $type \" , \" path\" : \" $relative_path \" , \" size\" : {\" bytes\" : $file_size , \" string\" : \" $( human_readable_size $file_size ) \" }});" >> deploy/_just/static/$BUILD_ID /buildManifest.js
150+ buildManifestJSONString=" {\" type\" : \" $type \" , \" path\" : \" $relative_path \" , \" size\" : {\" bytes\" : $file_size , \" string\" : \" $( human_readable_size $file_size ) \" }}"
151+ echo " _just_buildManifest0.push($buildManifestJSONString );" >> deploy/_just/static/$BUILD_ID /buildManifest.js
152+ echo " $buildManifestJSONString " >> deploy/api/build-manifest
153+ echo " ($type ) $relative_path - $( human_readable_size $file_size ) \n" >> deploy/api/build-manifest.txt
144154 fi
145155 fi
146156
@@ -167,3 +177,7 @@ for html_file in deploy/*.html; do
167177 echo " </body>" >> " $html_file "
168178 echo " </html>" >> " $html_file "
169179done
180+
181+ # Add API Endpoints
182+ cp deploy/api/_just_build-manifest deploy/api/_just_build-manifest.json
183+ cp deploy/api/build-manifest deploy/api/build-manifest.json
0 commit comments