fix: unable to checkout publish in workflow
All checks were successful
Deploy Pages / Generate-Pages (push) Successful in 36s

This commit is contained in:
Linloir 2024-10-09 23:24:34 +08:00
parent f940c8e7d9
commit 8989b50562
Signed by: Linloir
GPG Key ID: 3D6B9EC35C923C81

View File

@ -29,7 +29,9 @@ jobs:
- name: Copy pages
run: cp -r public ../pages
- name: Checkout to `publish` branch
run: git checkout publish
run: |
git fetch
git checkout publish
- name: Remove old files
run: rm -rf `ls | grep -v .git`
- name: Copy new files