Chore: download dist from GitLab if GitHub dist repo is down

This commit is contained in:
SukkaW
2024-09-04 22:18:19 +08:00
parent affaa13890
commit 554afd0fd9
3 changed files with 71 additions and 50 deletions

View File

@@ -74,8 +74,8 @@ jobs:
run: |
mkdir ./deploy-git
cd ./deploy-git
git init
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}"
@@ -95,6 +95,7 @@ jobs:
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
- name: Upload Dist to GitHub
uses: peaceiris/actions-gh-pages@v4
continue-on-error: true
with:
personal_token: ${{ secrets.GIT_TOKEN }}
user_name: ${{ secrets.GIT_USER }}