From 6df3c0b68533406c0d388b105b036923c3420b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=85=E6=B2=BB=E6=98=8E=E5=8D=83=E6=A0=91=E6=B1=90?= Date: Sat, 3 Sep 2022 23:15:09 +0800 Subject: [PATCH] fix: ci bug --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index adb92a8..128f968 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -64,8 +64,7 @@ upload: Move-Item ".\node_modules\${nodeModulesDir}\*" ".\Public\node_modules\${nodeModulesDir}\"; } - Remove-Item ".\node_modules\" -Recurse; - - PowerShell -Command "& {git clone https://gitlab.soraharu.com/XiaoXi/OpenNav-Material-Design .\Public\themes\material-design\}"; - - Remove-Item ".\Public\themes\material-design\.git\" -Recurse; + - PowerShell -Command "& {git clone --depth=1 https://gitlab.soraharu.com/XiaoXi/OpenNav-Material-Design .\Public\themes\material-design\}"; - Set-Location "..\"; - if (Test-Path -Path ".\OpenNav-compiled.zip" -PathType Leaf) { Remove-Item ".\OpenNav-compiled.zip" -Recurse;