Skip to content

Commit

Permalink
docs: Update release process to work on the main branch
Browse files Browse the repository at this point in the history
Add shell commands to make sure the release is done on the main branch. And add commands to remove the release tags, to retry doing the release
  • Loading branch information
aurambaj committed Nov 15, 2023
1 parent 522a1ab commit 0f7c914
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion release.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ and [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
Update this document with new version while doing the release.

```shell
export NEW_VERSION=1.0.3
git checkout main
git fetch origin main
git reset --hard origin/main
export NEW_VERSION=1.0.4
mvn versions:set -DnewVersion=${NEW_VERSION} -DgenerateBackupPoms=false
mvn versions:set-scm-tag -DnewTag=${NEW_VERSION} -DgenerateBackupPoms=false
./update-non-maven-versions.sh ${NEW_VERSION}
Expand Down Expand Up @@ -72,3 +75,11 @@ Again, check CI succeed.

Go to [Sonatype](https://oss.sonatype.org/#stagingRepositories) to review the staged deployment and
release it to Maven Central.

### In case of error while doing the release

To remove tags,
```shell
git tag -d ${NEW_VERSION}
git push
```

0 comments on commit 0f7c914

Please sign in to comment.