mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-14 02:00:37 +08:00
CI: unarchive then re-archive dist repo
This commit is contained in:
parent
ee1206edb8
commit
d4946aa8cc
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -206,6 +206,7 @@ jobs:
|
|||||||
- name: Upload Dist to GitHub
|
- name: Upload Dist to GitHub
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
|
gh repo unarchive SukkaLab/ruleset.skk.moe --yes
|
||||||
git clone --filter=tree:0 --no-tags 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
|
cd ./deploy-git
|
||||||
git config --global push.default matching
|
git config --global push.default matching
|
||||||
@ -219,6 +220,7 @@ jobs:
|
|||||||
git push --quiet --force origin HEAD:master
|
git push --quiet --force origin HEAD:master
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf ./deploy-git
|
rm -rf ./deploy-git
|
||||||
|
gh repo archive SukkaLab/ruleset.skk.moe --yes
|
||||||
env:
|
env:
|
||||||
GH_EMAIL: ${{ secrets.GIT_EMAIL }}
|
GH_EMAIL: ${{ secrets.GIT_EMAIL }}
|
||||||
GH_USER: ${{ secrets.GIT_USER }}
|
GH_USER: ${{ secrets.GIT_USER }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user