Skip to content

Commit a0ed0f3

Browse files
committed
fix deploy doc
1 parent d8d099d commit a0ed0f3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cphp-gh-release-asset.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ curl -sS -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application
2727

2828
rm -rf .git
2929
mkdocs build -d doc_dist
30-
mkdir cli-site
30+
31+
git config user.email "info@continuousphp.com"
32+
git config user.name "${CPHP_BUILT_BY}"
33+
34+
git clone "https://${GITHUB_TOKEN}@github.com/continuousphp/cli.git" cli-site
3135
cd cli-site
32-
git init
33-
git pull "https://${GITHUB_TOKEN}@github.com/continuousphp/cli.git" gh-pages
36+
git checkout gh-pages
3437
rm -rf doc
3538
mv ../doc_dist doc
3639

@@ -39,8 +42,5 @@ php -r '$x = json_decode(file_get_contents("manifest.json"), true); $x["'$TAG'"]
3942
git add -A doc
4043
git add manifest.json
4144

42-
git config user.email "info@continuousphp.com"
43-
git config user.name "${CPHP_BUILT_BY}"
44-
4545
git commit -m "Update doc to tag $TAG"
46-
git push "https://${GITHUB_TOKEN}@github.com/continuousphp/cli.git"
46+
git push origin gh-pages

0 commit comments

Comments
 (0)