-
Update
CHANGELOG.md
. -
Set versions:
export RELEASE_VERSION=X.Y.Z export NEXT_VERSION=X.Y.Z-SNAPSHOT
-
Update versions:
sed -i "" \ "s/'io.outfoxx:\([^\:]*\):[^']*'/'io.outfoxx:\1:$RELEASE_VERSION'/g" \ `find . -name "README.md"` sed -i "" \ "s/outfoxx.github.io\/swiftpoet\/[^\/]*\/\(.*\)/outfoxx.github.io\/swiftpoet\/$RELEASE_VERSION\/\1/g" \ `find . -name "README.md"` sed -i "" \ "s/\<version\>\([^<]*\)\<\/version\>/\<version\>$RELEASE_VERSION\<\/version\>/g" \ `find . -name "README.md"`
-
Tag the release and push to GitHub.
git checkout -b release.$RELEASE_VERSION git commit -am "Prepare for release $RELEASE_VERSION." git tag -a $RELEASE_VERSION -m "Version $RELEASE_VERSION" git push && git push --tags
-
Tag your buddies and merge when CI goes green. Once merged, CI will automatically release the artifacts.
-
Prepare for ongoing development and push to GitHub.
git checkout -b dev.$NEXT_VERSION sed -i "" \ "s/releaseVersion=.*/releaseVersion=$NEXT_VERSION/g" \ `find . -name "gradle.properties"` git commit -am "Prepare next development version." git push
-
CI will release the artifact and publish the documentation.