Skip to content

Commit 9d22d2f

Browse files
authored
Enable auto deployment for next release (#14217)
1 parent 7f7287b commit 9d22d2f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ tasks {
172172
val token = Base64.getEncoder().encodeToString("$username:$password".toByteArray())
173173

174174
var query = "?name=opentelemetry-java-instrumentation-$stableVersion"
175-
// uncomment to automatically publish the release
176-
// query += "&publishingType=AUTOMATIC"
175+
query += "&publishingType=AUTOMATIC"
177176

178177
doFirst {
179178
val bundle = generateReleaseBundle.get().outputs.files.singleFile
@@ -190,9 +189,6 @@ tasks {
190189
)
191190
.header("authorization", "Bearer $token")
192191
.build()
193-
httpClient.newCall(request).execute().use { response ->
194-
response.body.string()
195-
}
196192

197193
httpClient.newCall(request).execute().use { response ->
198194
if (response.code != 201) throw GradleException("Unexpected response status ${response.code} while uploading the release bundle")

0 commit comments

Comments
 (0)