From c3483371503d3c0f87c2d9eb698eeee3efac751a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 21 Jan 2020 10:49:21 +0100 Subject: [PATCH] ci: fix GitHub upload by not changing dir when uploading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ci/github.groovy | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/ci/github.groovy b/ci/github.groovy index 238518a365..fdee24c460 100644 --- a/ci/github.groovy +++ b/ci/github.groovy @@ -131,17 +131,15 @@ def releaseDelete(Map args) { } def releaseUpload(Map args) { - dir(args.pkgDir) { - args.files.each { - sh """ - github-release upload \ - -u '${args.user}' \ - -r '${args.repo}' \ - -t '${args.version}' \ - -n ${it} \ - -f ${it} - """ - } + args.files.each { + sh """ + github-release upload \ + -u '${args.user}' \ + -r '${args.repo}' \ + -t '${args.version}' \ + -n ${it} \ + -f ${it} + """ } } @@ -163,7 +161,6 @@ def publishRelease(Map args) { draft: true, user: 'status-im', repo: 'status-react', - pkgDir: args.pkgDir, files: args.files, version: args.version, branch: ghcmgr.utils.branchName(), @@ -189,7 +186,6 @@ def publishReleaseMobile(path='pkg') { } publishRelease( version: ghcmgr.utils.getVersion(), - pkgDir: 'pkg', files: found.collect { it.path }, ) }