...
Now, add your Apache GPG key to the Flink’s KEYS
file in the release
repository at dist.apache.org
. Follow the instructions listed at the top of these files. (Note: Only PMC members have write access to the release repository. If you end up getting 403 errors ask on the mailing list for assistance.) PMC member can refer following scripts to add your Apache GPG key to the KEYS in the release repository.
Code Block | ||
---|---|---|
| ||
svn co https://dist.apache.org/repos/dist/release/flink flink-dist-release-repo
cd flink-dist-release-repo
(gpg --list-sigs <YOUR_KEY_ID> && gpg --armor --export <YOUR_KEY_ID>) >> KEYS
svn ci -m "[flink] Add <YOUR_NAME>'s public key" |
Configure git
to use this key when signing code by giving it your key ID, as follows:
...
Code Block | ||
---|---|---|
| ||
RELEASE_VERSION="2.1.0" SHORT_RELEASE_VERSION="2.1" CURRENT_SNAPSHOT_VERSION="$SHORT_RELEASE_VERSION-SNAPSHOT" NEXT_SNAPSHOT_VERSION="2.2-SNAPSHOT" SHORT_NEXT_SNAPSHOT_VERSION="2.2" SHORT_PREVIOUS_RELEASE_VERSION="2.0" |
If you are doing a new major/minor release (e.g. 2.0.0, 2.1.0), check out the version of the codebase from which you start the release. This may be HEAD
of the master
branch branch.
Create a branch for the new version that we want to release before updating the master branch to the next development version:
Code Block | ||
---|---|---|
| ||
$ git checkout master $ PREVIOUS_RELEASE_VERSION=$SHORT_PREVIOUS_RELEASE_VERSION CURRENT_RELEASE_VERSION=$SHORT_RELEASE_VERSION tools/releasing/update_playground_links.sh $ RELEASE_VERSION=$SHORT_RELEASE_VERSION tools/releasing/create_release_branch.sh $ git checkout master $ OLD_VERSION=$CURRENT_SNAPSHOT_VERSION NEW_VERSION=$NEXT_SNAPSHOT_VERSION tools/releasing/update_branch_version.sh $ git checkout release-$SHORT_RELEASE_VERSION |
...
Code Block | ||
---|---|---|
| ||
$ svn checkout https://dist.apache.org/repos/dist/dev/flink/flink-statefun-${RELEASE_VERSION}-rc${RC_NUM}
$ cd flink-statefun-${RELEASE_VERSION}-rc${RC_NUM}
$ twine upload --repository-url https://upload.pypi.org/legacy/ \
apache-flink-statefun-${RELEASE_VERSION}.tar.gz apache-flink-statefun-${RELEASE_VERSION}.tar.gz.asc \
apache_flink_statefun-${RELEASE_VERSION}-py3-none-any.whl apache_flink_statefun-${RELEASE_VERSION}-py3-none-any.whl.asc |
...