Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.

Commit 679c660

Browse files
committed
Fix githubRelease task - part 3, now bwc compatible with the previous filenames
1 parent 8493774 commit 679c660

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,16 @@ githubRelease.doFirst {
9292
}
9393

9494
def currentVersion = version.replace('-SNAPSHOT', '')
95+
def filename = "build/distribution/ingest-langdetect-${currentVersion}.zip"
96+
Files.copy(file("build/distribution/elasticsearch-ingest-langdetect.zip").toPath(), file(filename).toPath())
9597

9698
// configuration
9799
github {
98100
owner = 'spinscale'
99101
repo = 'elasticsearch-ingest-langdetect'
100102
token = System.getProperty('GITHUB_TOKEN')
101103
tagName = currentVersion
102-
assets = [ "build/distribution/elasticsearch-ingest-langdetect.zip" ]
104+
assets = [ filename ]
103105
targetCommitish = 'main'
104106
}
105107
}

0 commit comments

Comments
 (0)