diff --git a/publish_on_pages.sh b/publish_on_pages.sh index 797a285155fee6fcb6ddd6809731b96cd164c7d8..cf52c3f4950c1f345b806c3f0a6ea1c22e669b17 100644 --- a/publish_on_pages.sh +++ b/publish_on_pages.sh @@ -17,8 +17,8 @@ if [ -e "content.zip" ]; then unzip "content.zip"; rm "content.zip"; fi set -e echo "------ Add/update content --------" -mkdir -p "public/$3" -cp -r -f "$2_$3.docx" public/$3 +mkdir -p "public/$4" +cp -r -f "$3_$4.docx" public/$3 docker run --rm -u $(id -u):$(id -g) "$DOCKER_IMAGE" $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"