Skip to content

Commit d8d099d

Browse files
committed
fix deploy doc
1 parent b9845f1 commit d8d099d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cphp-gh-release-asset.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ git pull "https://${GITHUB_TOKEN}@github.com/continuousphp/cli.git" gh-pages
3434
rm -rf doc
3535
mv ../doc_dist doc
3636

37-
TAG="v0.1.2"
38-
PHAR_NAME="continuousphp-$TAG.phar"
39-
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

4239
git add -A doc
4340
git add manifest.json
4441

42+
git config user.email "[email protected]"
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" gh-pages
46+
git push "https://${GITHUB_TOKEN}@github.com/continuousphp/cli.git"

0 commit comments

Comments
 (0)