ci: fix GitHub release by using glob for all files

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-01-21 08:52:46 +01:00
parent 2dce0ba861
commit 5e6ab5d0d9
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 8 additions and 7 deletions

View File

@ -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 },
)
}