Skip to content

Commit c87a40f

Browse files
committed
fix deploy doc
1 parent a0ed0f3 commit c87a40f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cphp-gh-release-asset.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ curl -sS -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application
2828
rm -rf .git
2929
mkdocs build -d doc_dist
3030

31-
git config user.email "info@continuousphp.com"
32-
git config user.name "${CPHP_BUILT_BY}"
33-
3431
git clone "https://${GITHUB_TOKEN}@github.com/continuousphp/cli.git" cli-site
3532
cd cli-site
3633
git checkout gh-pages
@@ -39,6 +36,9 @@ mv ../doc_dist doc
3936

4037
php -r '$x = json_decode(file_get_contents("manifest.json"), true); $x["'$TAG'"] = ["name"=>"continuousphpcli.phar","sha1"=>sha1_file("../'$PHAR_NAME'"),"url"=>"https://github.com/continuousphp/cli/releases/download/'$TAG'/continuousphpcli.phar","version"=>substr("'$TAG'",1)]; file_put_contents("manifest.json", json_encode($x)); print_r($x);'
4138

39+
git config user.email "info@continuousphp.com"
40+
git config user.name "${CPHP_BUILT_BY}"
41+
4242
git add -A doc
4343
git add manifest.json
4444

0 commit comments

Comments
 (0)