File tree Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Original file line number Diff line number Diff line change @@ -26,19 +26,33 @@ How to execute them all
2626
2727` make `
2828
29+ How to generate HTML phpdoc
30+ --
31+
32+ Use ` make doc `
33+
34+ Pull request policy
35+ --
36+
37+ - Please * DON'T* include the generated HTML phpdoc in pull request
38+
2939Release Flow
3040--
3141
32- 1 . Make a git tag (this project uses semantic versioning)
42+ 1 . Generate HTML phpdoc
43+ 1 . Make a git tag (this project uses [ semantic versioning] ( http://semver.org/ ) )
33441 . Push the tag to origin
45+ 1 . Edit [ GitHub releases] ( https://github.com/line/line-bot-sdk-php/releases )
46+
47+ You can execute steps 1-3 with ` make release ` command.
3448
3549That's all. It will be publish on [ composer] ( https://packagist.org/packages/linecorp/line-bot-sdk ) automatically.
3650
3751e.g.
3852
3953```
40- $ git tag 1.2.3
41- $ git push origin 1.2.3
54+ $ make release VERSION= 1.2.3
55+ # Then, edit GitHub releases
4256```
4357
4458Testing of HTTP client
Original file line number Diff line number Diff line change 11COMPOSER_BIN = ./vendor/bin
22
3- .PHONY : default test doc phpcs phpmd check install-devtool
3+ .PHONY : default test doc phpcs phpmd check install-devtool copyright release
44
55default : check
66
@@ -58,3 +58,16 @@ check: test copyright phpcs phpmd
5858install-devtool :
5959 bash ./devtool/download_req_mirror.sh
6060
61+ release :
62+ ifndef VERSION
63+ @tput setaf 1
64+ @echo '[ERROR] $$VERSION is missing; it must be specified'
65+ @echo 'USAGE:'
66+ @echo ' make release VERSION=1.2.3'
67+ @tput sgr0
68+ @exit 255
69+ endif
70+ make doc
71+ git tag $(VERSION)
72+ git push origin $(VERSION)
73+
You can’t perform that action at this time.
0 commit comments