Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
added copy of the image data to the entrypoint
  • Loading branch information
cedricdcc committed Apr 20, 2023
1 parent 2ada2b6 commit d151f72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ else
exit 1
fi

echo "copying over the ./img folder to ./public/img"
cp -r ./img ./public/img

#check if there is a img folder in ./github/workspace, if so copy it over to ./src/img recursively with force overwrite
echo "checking if there is a img folder in ./github/workspace"
if [ -d ./github/workspace/img ];
Expand Down Expand Up @@ -118,6 +121,8 @@ npm install
echo "npm run build"
npm run build
echo "copying over scr files to build folder"


#in the index.html add the following line <link href="./metadata.ttl" rel="describedby" type=" text/turtle"> to the head tag
echo "adding the following line <link href="./metadata.ttl" rel="describedby" type="text/turtle"> to the head tag of the index.html file"
sed -i "s|</head>|<link href="./metadata.ttl" rel="describedby" type="text/turtle"></head>|g" ./build/index.html
Expand Down

0 comments on commit d151f72

Please sign in to comment.