Greg Szabo e4a03f249d | 6 years ago | |
---|---|---|
.. | ||
README.md | 6 years ago | |
bump-semver.py | 6 years ago | |
github-draft.py | 6 years ago | |
github-openpr.py | 6 years ago | |
github-public-newbranch.bash | 6 years ago | |
github-publish.py | 6 years ago | |
github-upload.py | 6 years ago | |
sha-files.py | 6 years ago | |
zip-file.py | 6 years ago |
The scripts in this folder are used for release management in CircleCI. Although the scripts are fully configurable using input parameters, the default settings were modified to accommodate CircleCI execution.
These scripts help during the build process. They prepare the release files.
Bumps the semantic version of the input --version
. Versions are expected in vMAJOR.MINOR.PATCH format or vMAJOR.MINOR format.
In vMAJOR.MINOR format, the result will be patch version 0 of that version, for example v1.2 -> v1.2.0
.
In vMAJOR.MINOR.PATCH format, the result will be a bumped PATCH version, for example v1.2.3 -> v1.2.4
.
If the PATCH number contains letters, it is considered a development version, in which case, the result is the non-development version of that number.
The patch number will not be bumped, only the "-dev" or similar additional text will be removed. For example: v1.2.6-rc1 -> v1.2.6
.
Specialized ZIP command for release management. Special features:
zip
command does not need to be installed.By default, the command will try to ZIP the file at build/tendermint_${GOOS}_${GOARCH}
.
This can be changed with the --file
input parameter.
By default, the command will output the ZIP file to build/tendermint_${CIRCLE_TAG}_${GOOS}_${GOARCH}.zip
.
This can be changed with the --destination
(folder), --version
, --goos
and --goarch
input parameters respectively.
Specialized shasum
command for release management. Special features:
By default, the command will look up all ZIP files in the build/
folder.
By default, the command will output results into the build/SHA256SUMS
file.
Uploading build results to GitHub requires at least these steps:
Creates a GitHub release and fills the content with the CHANGELOG.md link. The version number can be changed by the --version
parameter.
By default, the command will use the tendermint/tendermint organization/repo, which can be changed using the --org
and --repo
parameters.
By default, the command will get the version number from the ${CIRCLE_TAG}
variable.
Returns the GitHub release ID.
Upload a file to a GitHub release. The release is defined by the mandatory --id
(release ID) input parameter.
By default, the command will upload the file /tmp/workspace/tendermint_${CIRCLE_TAG}_${GOOS}_${GOARCH}.zip
. This can be changed by the --file
input parameter.
Publish a GitHub release. The release is defined by the mandatory --id
(release ID) input parameter.