...
Set up environment variables
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | Export Vars |
---|
|
export VERSION=0.4.0-alpha |
...
export RELEASE_DIR=~/ozone-release/ (ozone-release needs to be created) |
...
export CODESIGNINGKEY=your_gpg_key_id |
Reset the git repository
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | Reset the Git Repo |
---|
|
git reset --hard |
...
Update the versions
Use below command or use IDE to replace "0.4.0-SNAPSHOT" to "0.4.0-alpha".
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | Update the Versions |
---|
|
find . -name pom.xml -type f | xargs sed -i 's/0.4.0-SNAPSHOT/0.4.0-alpha/g' |
Commit the changes
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | Commit the version changes |
---|
|
git commit -am "commit updated ozone version" |
Tag the repository
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | Tag the Release |
---|
|
git tag -s ozone- |
...
Create the release artifacts
...