File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -144,10 +144,11 @@ if [[ $VERSION == false ]]; then
144
144
145
145
# erase git history then force push to overwrite
146
146
cd Ax-gh-pages || exit
147
- git checkout --orphan latest
147
+ rm -rf .git
148
+ git init -b main
148
149
git add --all
149
150
git commit -m ' Update latest version of site'
150
- git push --force origin latest :gh-pages
151
+ git push --force
" [email protected] :facebook/Ax" main :gh-pages
151
152
152
153
else
153
154
echo " -----------------------------------------"
@@ -221,10 +222,10 @@ else
221
222
222
223
# Init as Git repo and push to gh-pages
223
224
cd new-site || exit
224
- git checkout --orphan latest
225
+ git init -b main
225
226
git add --all
226
227
git commit -m " Publish version ${VERSION} of site"
227
- git push --force origin latest :gh-pages
228
+ git push --force
" [email protected] :facebook/Ax" main :gh-pages
228
229
229
230
fi
230
231
You can’t perform that action at this time.
0 commit comments