Skip to content

Commit 0acff3b

Browse files
committed
feat: try to use subtree to push
1 parent 72b512b commit 0acff3b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,9 @@ jobs:
3737
3838
cd docs/.vitepress/dist
3939
40-
git init --initial-branch=${TARGET_BRANCH}
41-
git remote add origin ${ORIGIN_URL}
42-
git add .
43-
git commit -m "${COMMIT_MSG}"
40+
git subtree push --prefix=docs/.vitepress/dist origin ${TARGET_BRANCH}
4441
4542
echo "Branch: ${BRANCH}"
4643
echo "Pushing to ${TARGET_BRANCH}"
4744
echo "Origin URL: ${ORIGIN_URL}"
48-
echo "Commit Message: ${COMMIT_MSG}"
49-
50-
git push origin "${TARGET_BRANCH}"
45+
echo "Commit Message: ${COMMIT_MSG}"

0 commit comments

Comments
 (0)