2017-07-19 12:32:05 +00:00
|
|
|
# Releasing Frappe ERPNext
|
|
|
|
|
|
|
|
* Make a new bench dedicated for releasing
|
|
|
|
```
|
|
|
|
bench init release-bench --frappe-path git@github.com:frappe/frappe.git
|
|
|
|
```
|
|
|
|
|
|
|
|
* Get ERPNext in the release bench
|
|
|
|
```
|
|
|
|
bench get-app erpnext git@github.com:frappe/erpnext.git
|
|
|
|
```
|
|
|
|
|
|
|
|
* Configure as release bench. Add this to the common_site_config.json
|
|
|
|
```
|
|
|
|
"release_bench": true,
|
|
|
|
```
|
|
|
|
|
2017-07-21 13:35:31 +00:00
|
|
|
* Add branches to update in common_site_config.json
|
|
|
|
```
|
|
|
|
"branches_to_update": {
|
|
|
|
"staging": ["develop", "hotfix"],
|
|
|
|
"hotfix": ["develop", "staging"]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2017-07-19 12:32:05 +00:00
|
|
|
* Use the release commands to release
|
|
|
|
```
|
|
|
|
Usage: bench release [OPTIONS] APP BUMP_TYPE
|
|
|
|
```
|
|
|
|
|
|
|
|
* Arguments :
|
|
|
|
* _APP_ App name e.g [frappe|erpnext|yourapp]
|
|
|
|
* _BUMP_TYPE_ [major|minor|patch|stable|prerelease]
|
|
|
|
* Options:
|
2017-07-21 13:35:31 +00:00
|
|
|
* --from-branch git develop branch, default is develop
|
|
|
|
* --to-branch git master branch, default is master
|
2017-07-19 12:32:05 +00:00
|
|
|
* --remote git remote, default is upstream
|
|
|
|
* --owner git owner, default is frappe
|
2017-09-30 06:16:54 +00:00
|
|
|
* --repo-name git repo name if different from app name
|
|
|
|
|
|
|
|
* When updating major version, update `develop_version` in hooks.py, e.g. `9.x.x-develop`
|