diff --git a/publish_on_pages.sh b/publish_on_pages.sh index d577bff0690ab6c5c801403661de3f3672f46bb8..2aa41d2d034a9ae872acd7848171ee14fd31a609 100644 --- a/publish_on_pages.sh +++ b/publish_on_pages.sh @@ -4,8 +4,6 @@ DOCKER_IMAGE=python:3.9-slim-bullseye echo "\n------ Checking for docker image --------" docker pull "$DOCKER_IMAGE" -#HOST_URL=$(echo $1 | cut -d'/' -f 1-3) -#PROJECT_NAME=$(echo $1 | cut -d'/' -f 5- | cut -d'.' -f 1) echo "Pages URL:" $2 echo "PROJECT NAME:" $3 echo "TAG NAME:" $4 @@ -28,8 +26,6 @@ mkdir -p "public/$4" cp -r -f "$3_$4.docx" public/$4 docker run --rm -v $(pwd):/tmp -w /tmp "$DOCKER_IMAGE" pip install bs4 && python3 $1 "$3_$4" "$4/$3_$4.docx" "$5" -#echo "<a href="${CI_COMMIT_REF_NAME}/${CI_PROJECT_NAME}_${CI_COMMIT_TAG}.docx" target="_blank">$CI_COMMIT_REF_NAME</a>" >> "public/index.html" - echo "------ Zip the content and publish the zip again ------" zip -r "content.zip" "public" @@ -37,8 +33,9 @@ mv "content.zip" "public/" exit 0 +#Parameters #updateIndex.py #$CI_PAGES_URL -#${CI_PROJECT_NAME} +#$CI_PROJECT_NAME #$CI_COMMIT_REF_NAME -#index.htm +#index.html