Skip to content

Commit

Permalink
feat: 调整工作流
Browse files Browse the repository at this point in the history
  • Loading branch information
mulingyuer committed Jan 17, 2025
1 parent 5c533d0 commit 8f2cb22
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ jobs:
run: pnpm build

- name: 克隆preview分支
run: git clone --branch=preview --single-branch . ../preview
run: |
if git show-ref --verify --quiet refs/remotes/origin/preview; then
git clone --branch=preview --single-branch . ../preview
else
git clone . ../preview
cd ../preview
git checkout --orphan preview
git rm -rf .
fi
- name: 清理preview分支
run: |
Expand Down

0 comments on commit 8f2cb22

Please sign in to comment.