Skip to content

Commit

Permalink
Update JReleaser config to push version tag in main release (#2337)
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbaker authored Jun 24, 2024
1 parent 3b73065 commit 497d2ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 4 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,12 @@ if (project.hasProperty("release.main")) {
jreleaser {
dryrun = false

// Used for creating a tagged release, uploading files and generating changelog.
// In the future we can set this up to push release tags to GitHub, but for now it's
// set up to do nothing.
// https://jreleaser.org/guide/latest/reference/release/index.html
// Used for creating and pushing the version tag, but this configuration ensures that
// an actual GitHub release isn't created (since the CLI release does that)
release {
generic {
enabled = true
github {
skipRelease = true
tagName = '{{projectVersion}}'
}
}

Expand Down
2 changes: 2 additions & 0 deletions smithy-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ if (project.hasProperty("release.cli")) {
github {
overwrite = true
tagName = '{{projectVersion}}'
skipTag = true
releaseName = 'Smithy CLI v{{{projectVersion}}}'
changelog {
// For now, we won't have a changelog added to the release. In the future, we could create a changelog-snippet
// from the real changelog as part of a command hook prior to the release step
Expand Down

0 comments on commit 497d2ca

Please sign in to comment.