Loading project-automation/pages-templates.yaml +4 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ pages: echo ${FILES} | xargs sed -i "s|- local: \"|- remote: \"${CI_PAGES_URL}/${GIT_REF_NAME}/|g" echo ${FILES} | xargs sed -i "s|- local: |- remote: ${CI_PAGES_URL}/${GIT_REF_NAME}/|g" cp -r . /tmp/public/${GIT_REF_NAME} rm -rf /tmp/public/${GIT_REF_NAME}/.git git reset --hard -q echo "done." Loading @@ -39,6 +40,9 @@ pages: - echo "[*] Publishing $(echo $GIT_TAGS | wc -w) tags and $(echo $GIT_BRANCHES | wc -w) branches to ${CI_PAGES_URL}..." - mv /tmp/public ${CI_PROJECT_DIR}/public - find ${CI_PROJECT_DIR}/public -type f ! -name "*.yaml" ! -name "*.yml" -delete - find ${CI_PROJECT_DIR}/public -type d -empty -delete needs: [] artifacts: paths: Loading Loading
project-automation/pages-templates.yaml +4 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ pages: echo ${FILES} | xargs sed -i "s|- local: \"|- remote: \"${CI_PAGES_URL}/${GIT_REF_NAME}/|g" echo ${FILES} | xargs sed -i "s|- local: |- remote: ${CI_PAGES_URL}/${GIT_REF_NAME}/|g" cp -r . /tmp/public/${GIT_REF_NAME} rm -rf /tmp/public/${GIT_REF_NAME}/.git git reset --hard -q echo "done." Loading @@ -39,6 +40,9 @@ pages: - echo "[*] Publishing $(echo $GIT_TAGS | wc -w) tags and $(echo $GIT_BRANCHES | wc -w) branches to ${CI_PAGES_URL}..." - mv /tmp/public ${CI_PROJECT_DIR}/public - find ${CI_PROJECT_DIR}/public -type f ! -name "*.yaml" ! -name "*.yml" -delete - find ${CI_PROJECT_DIR}/public -type d -empty -delete needs: [] artifacts: paths: Loading