CI: fix remote git upload

This commit is contained in:
SukkaW 2025-01-17 20:44:03 +08:00
parent 43085cc00e
commit 9a4acbd3f1

View File

@ -130,7 +130,7 @@ jobs:
- name: Upload Dist to GitLab
continue-on-error: true
run: |
git clone --filter=tree:0 --no-tags --prune https://${GITLAB_TOKEN_NAME}:${GITLAB_TOKEN}@gitlab.com/SukkaW/ruleset.skk.moe.git ./deploy-git
git clone --filter=tree:0 --no-tags https://${GITLAB_TOKEN_NAME}:${GITLAB_TOKEN}@gitlab.com/SukkaW/ruleset.skk.moe.git ./deploy-git
cd ./deploy-git
git config --global push.default matching
git config --global user.email "${GITLAB_EMAIL}"
@ -150,7 +150,7 @@ jobs:
- name: Upload Dist to GitHub
continue-on-error: true
run: |
git clone --filter=tree:0 --no-tags --prune https://${GH_USER}:${GH_TOKEN}@github.com/SukkaLab/ruleset.skk.moe.git ./deploy-git
git clone --filter=tree:0 --no-tags https://${GH_USER}:${GH_TOKEN}@github.com/SukkaLab/ruleset.skk.moe.git ./deploy-git
cd ./deploy-git
git config --global push.default matching
git config --global user.email "${GH_EMAIL}"