OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.74k stars 6.32k forks source link

Improvement to release script #649

Open wing328 opened 5 years ago

wing328 commented 5 years ago
Description

Based on https://github.com/OpenAPITools/openapi-generator/pull/647/commits/beaf2a56dc678cf0d8c5ffb468a6e7a128c9f84e, we can further automate the release process by replacing previous stable version (e.g. 3.1.1) with the latest stabe version (3.1.2)

openapi-generator version

Latest master

Related issues/PRs

https://github.com/OpenAPITools/openapi-generator/pull/647

Suggest a fix/enhancement

We will revise ./bin/utils/release_version_update.s accordingly.

jmini commented 5 years ago

On branch issue649, I have split release_version_update.sh into 2 scripts:

1/ release_version_update.sh for the POM and gradle items.

To prepare a release PR you call:

bin/utils/release_version_update.sh 3.1.2-SNAPSHOT 3.1.2

2/ release_version_update_docs.sh to do the update the docs.

To prepare a release PR you call:

bin/utils/release_version_update_docs.sh 3.1.1 3.1.2

This way you obtain almost PR #647.

Some changes in the root README.md are still needed.

@wing328: what do you think?

wing328 commented 5 years ago

Sure let's start with that. Later we can try to consolidate these release preparation scripts into one.

jmini commented 5 years ago

Wiki https://github.com/OpenAPITools/openapi-generator/wiki/Release-Checklist is updated to mention the bin/utils/release_version_update_docs.sh script.