File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -100,15 +100,18 @@ jobs:
100
100
101
101
echo "Cloning docs branch ..."
102
102
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/
104
103
105
104
cd docs-cache
105
+ git checkout --orphan docs
106
+ git rm -rf .
107
+ cp "../$CACHE_FILE" ./
108
+
106
109
git config user.name github-actions[bot]
107
110
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
108
111
109
112
git add .git-committers-cache.json
110
113
git commit -m "chore: update committer cache [skip ci]" || echo "No changes to commit"
111
- git push origin docs
114
+ git push --force origin docs
112
115
113
116
- name : Upload artifact
114
117
uses : actions/upload-pages-artifact@v3
You can’t perform that action at this time.
0 commit comments