Loading netlify.sh +10 −8 Original line number Diff line number Diff line Loading @@ -32,14 +32,16 @@ if [ "${NETLIFY}" = "true" ]; then echo "[*] Removing files not used by end users..." rm -rf /opt/build/repo/public/*/tests find /opt/build/repo/public -type f ! -name "*.yaml" ! -name "*.yml" -delete find /opt/build/repo/public -type f -name ".gitlab-ci.yml" -delete find /opt/build/repo/public -type f -name ".yamllint.yml" -delete find /opt/build/repo/public -type f -name ".pre-commit-config.yaml" -delete find /opt/build/repo/public -type d -empty -delete cd /opt/build/repo/public cd /opt/build/repo rm -rf public/*/tests find public -type f ! -name "*.yaml" ! -name "*.yml" -delete find public -type f -name ".gitlab-ci.yml" -delete find public -type f -name ".yamllint.yml" -delete find public -type f -name ".pre-commit-config.yaml" -delete find public -type d -empty -delete cd public tree -H '.' --noreport --dirsfirst -T "${PAGES_TEMPLATES_NAME:-Templates}" --charset utf-8 -o index.html . Loading Loading
netlify.sh +10 −8 Original line number Diff line number Diff line Loading @@ -32,14 +32,16 @@ if [ "${NETLIFY}" = "true" ]; then echo "[*] Removing files not used by end users..." rm -rf /opt/build/repo/public/*/tests find /opt/build/repo/public -type f ! -name "*.yaml" ! -name "*.yml" -delete find /opt/build/repo/public -type f -name ".gitlab-ci.yml" -delete find /opt/build/repo/public -type f -name ".yamllint.yml" -delete find /opt/build/repo/public -type f -name ".pre-commit-config.yaml" -delete find /opt/build/repo/public -type d -empty -delete cd /opt/build/repo/public cd /opt/build/repo rm -rf public/*/tests find public -type f ! -name "*.yaml" ! -name "*.yml" -delete find public -type f -name ".gitlab-ci.yml" -delete find public -type f -name ".yamllint.yml" -delete find public -type f -name ".pre-commit-config.yaml" -delete find public -type d -empty -delete cd public tree -H '.' --noreport --dirsfirst -T "${PAGES_TEMPLATES_NAME:-Templates}" --charset utf-8 -o index.html . Loading