|
| 1 | +# Release Operations |
| 2 | + |
| 3 | +## Set the release version |
| 4 | + |
| 5 | +Run the Maven `version:set` goal: |
| 6 | + |
| 7 | +``` |
| 8 | +$ git checkout master |
| 9 | +$ git pull |
| 10 | +$ ./mvnw versions:set |
| 11 | +``` |
| 12 | + |
| 13 | +After success, run the Maven `version:commit` goal: |
| 14 | + |
| 15 | +``` |
| 16 | +$ ./mvnw versions:commit |
| 17 | +``` |
| 18 | + |
| 19 | +Commit the release version: |
| 20 | + |
| 21 | +``` |
| 22 | +$ git commit -m "Release v1.0.0" |
| 23 | +``` |
| 24 | + |
| 25 | +## Push to the master branch |
| 26 | + |
| 27 | +Create a tag and push the commit and the tag: |
| 28 | + |
| 29 | +``` |
| 30 | +$ git tag -a v1.0.0 -m "v1.0.0" |
| 31 | +$ git push origin master --tags |
| 32 | +``` |
| 33 | + |
| 34 | +## Build with GitHub Action |
| 35 | + |
| 36 | +The GitHub Action workflow [Java CI with Maven](.github/workflows/ci.yml) handles the above push event. |
| 37 | + |
| 38 | +The workflow builds the "doma-quarkus-parent", the "doma-quarkus-deployment" and the "doma-quarkus" artifacts |
| 39 | +and pushes them to Maven Central[Sonatype OSSRH](https://central.sonatype.org/pages/ossrh-guide.html). |
| 40 | + |
| 41 | +## Publish artifacts to Maven Central from Sonatype OSSRH |
| 42 | + |
| 43 | +Follow the instructions below: |
| 44 | + |
| 45 | +- Open [Nexus Repository Manager](https://oss.sonatype.org/). |
| 46 | +- Log in to the manager. |
| 47 | +- Select "Staging Repositories" from the side menu. |
| 48 | +- Check the repository of Doma. |
| 49 | +- Push the "Release" button. |
| 50 | + |
| 51 | +In a few minutes, all artifacts are copied to the [Maven Central Repository](https://repo1.maven.org/). |
| 52 | + |
| 53 | +## Publish release notes |
| 54 | + |
| 55 | +Open [Releases](https://github.com/domaframework/doma-quarkus/releases) |
| 56 | +and publish release notes. |
| 57 | + |
| 58 | +## Announce the release |
| 59 | + |
| 60 | +Announce the release of new version using Twitter. |
| 61 | +- [@domaframework](https://twitter.com/domaframework) |
| 62 | + |
| 63 | +## Set the next version |
| 64 | + |
| 65 | +Run the Maven `version:set` goal: |
| 66 | + |
| 67 | +``` |
| 68 | +$ ./mvnw versions:set |
| 69 | +``` |
| 70 | + |
| 71 | +After success, run the Maven `version:commit` goal: |
| 72 | + |
| 73 | +``` |
| 74 | +$ ./mvnw versions:commit |
| 75 | +``` |
| 76 | + |
| 77 | +Commit and push the next version: |
| 78 | + |
| 79 | +``` |
| 80 | +$ git commit -m "Next version [skip ci]" |
| 81 | +$ git push origin master |
| 82 | +``` |
0 commit comments