From 56383be02d988a5d16c91011a03b5d6334b151bd Mon Sep 17 00:00:00 2001 From: SukkaW Date: Sun, 8 Sep 2024 02:10:39 +0800 Subject: [PATCH] CI: make GitLab faster --- .github/workflows/main.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 49972ac2..da07fff4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -72,15 +72,11 @@ jobs: command: pages deploy public --project-name=sukkaw-ruleset --commit-dirty=true --branch=main - name: Upload Dist to GitLab run: | - mkdir ./deploy-git + git clone --filter=blob:none https://${GITLAB_TOKEN_NAME}:${GITLAB_TOKEN}@gitlab.com/SukkaW/ruleset.skk.moe.git ./deploy-git cd ./deploy-git - git config --global init.defaultBranch master - git init git config --global push.default matching git config --global user.email "${GITLAB_EMAIL}" git config --global user.name "${GITLAB_USER}" - git remote add origin https://${GITLAB_TOKEN_NAME}:${GITLAB_TOKEN}@gitlab.com/SukkaW/ruleset.skk.moe.git - git pull origin master rm -rf ./* cp -rf ../public/* ./ git add --all .