Skip to content

Commit 368460e

Browse files
authored
chore: update deploy ci
1 parent 8080d2c commit 368460e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,16 @@ jobs:
100100
101101
echo "Cloning docs branch ..."
102102
git clone --depth 1 --branch docs "https://x-access-token:${GH_TOKEN}@github.com/${GH_REPO}.git" docs-cache
103+
cp "$CACHE_FILE" docs-cache/
103104
104105
cd docs-cache
105-
git checkout --orphan docs
106-
git rm -rf .
107-
cp "../$CACHE_FILE" ./
108106
109107
git config user.name github-actions[bot]
110108
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
111109
112110
git add .git-committers-cache.json
113111
git commit -m "chore: update committer cache [skip ci]" || echo "No changes to commit"
114-
git push --force origin docs
112+
git push origin docs
115113
116114
- name: Upload artifact
117115
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)