From 5e6ab5d0d918747b1a6a8afa2cd244dcd87132a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 21 Jan 2020 08:52:46 +0100 Subject: [PATCH] ci: fix GitHub release by using glob for all files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ci/github.groovy | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/ci/github.groovy b/ci/github.groovy index 54bcab5b33..7b0481c1c3 100644 --- a/ci/github.groovy +++ b/ci/github.groovy @@ -181,15 +181,16 @@ def publishRelease(Map args) { } } -def publishReleaseMobile() { +def publishReleaseMobile(path='pkg') { + def found = findFiles(glob: "${path}/*") + if (found.size() == 0) { + sh "ls ${path}" + error("No file to release in ${path}") + } publishRelease( - version: ghcmgr.utils.getVersion()+'-mobile', + version: ghcmgr.utils.getVersion(), pkgDir: 'pkg', - files: [ /* upload only mobile release files */ - ghcmgr.utils.pkgFilename(btype, 'ipa'), - ghcmgr.utils.pkgFilename(btype, 'apk'), - ghcmgr.utils.pkgFilename(btype, 'sha256'), - ] + files: found.collect { it.path }, ) }