Release script fixes (#3154)

This commit is contained in:
wz1000 2022-09-14 13:44:32 +05:30 committed by GitHub
parent ddb21a0c8d
commit 5d35a740b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -41,13 +41,14 @@ def fetch_artifacts(release: str, pipeline_id: int,
logging.info(f'artifact archive for job {job.name} (job {job.id}) is empty')
continue
dest = dest_dir / f'haskell-language-server-{release}-{platform}.tar.xz'
extension = 'zip' if job.name.endswith('windows') else 'tar.xz'
dest = dest_dir / f'haskell-language-server-{release}-{platform}.{extension}'
if dest.exists():
logging.info(f'bindist {dest} already exists')
continue
subprocess.run(['unzip', '-bo', zip_name, '-d', destdir])
bindist_files = list(destdir.glob('*/haskell-language-server*.tar.xz'))
bindist_files = list(destdir.glob(f'*/haskell-language-server*.{extension}'))
if len(bindist_files) == 0:
logging.warn(f'Bindist does not exist')
continue

View File

@ -35,7 +35,7 @@ fi
echo HLS version $ver
host="webhost.haskell.org"
host="gitlab-storage.haskell.org"
usage() {
echo "Usage: [rel_name=<name>] SIGNING_KEY=<key> $0 <action>"