Skip to content

Commit

Permalink
Released 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
aparo committed Jan 30, 2022
1 parent 07fbc9a commit 49d2be4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ buildscript {
}
}

plugins {
id "co.riiid.gradle" version "0.4.2"
}


group = 'com.o19s'
version = "${ltrVersion}-os${opensearchVersion}"

Expand Down Expand Up @@ -93,3 +98,27 @@ sourceSets {
// Elastic tried to remove the logging requirement for plugins, but didn't get it quite right so this is a short term fix until 7.11
// https://github.com/elastic/opensearch/issues/65247
loggerUsageCheck.enabled = false

githubRelease.doFirst {
if (!System.getProperty('GITHUB_TOKEN', '')) {
throw new Exception('Missing property GITHUB_TOKEN')
}

// check if zip file is there
assert file("build/distributions/ingest-opennlp-${version}.zip").exists()

// rename zip file
def currentVersion = version.replace('-SNAPSHOT', '')
def filename = "build/distributions/ltr-1.5.4-os${currentVersion}.zip"
Files.copy(file("build/distributions/ltr-1.5.4-os${version}.zip").toPath(), file(filename).toPath())

// configuration
github {
owner = 'aparo'
repo = 'opensearch-learning-to-rank'
token = System.getProperty('GITHUB_TOKEN')
tagName = currentVersion
assets = [ filename ]
targetCommitish = 'main'
}
}

0 comments on commit 49d2be4

Please sign in to comment.