ci: fix GitHub upload by not changing dir when uploading

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-01-21 10:49:21 +01:00
parent b99e54c2cd
commit c348337150
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 9 additions and 13 deletions

View File

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