mirror of
https://github.com/haskell/haskell-language-server.git
synced 2024-10-26 09:20:16 +03:00
Release script fixes (#3154)
This commit is contained in:
parent
ddb21a0c8d
commit
5d35a740b2
@ -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')
|
logging.info(f'artifact archive for job {job.name} (job {job.id}) is empty')
|
||||||
continue
|
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():
|
if dest.exists():
|
||||||
logging.info(f'bindist {dest} already exists')
|
logging.info(f'bindist {dest} already exists')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
subprocess.run(['unzip', '-bo', zip_name, '-d', destdir])
|
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:
|
if len(bindist_files) == 0:
|
||||||
logging.warn(f'Bindist does not exist')
|
logging.warn(f'Bindist does not exist')
|
||||||
continue
|
continue
|
||||||
|
@ -35,7 +35,7 @@ fi
|
|||||||
|
|
||||||
echo HLS version $ver
|
echo HLS version $ver
|
||||||
|
|
||||||
host="webhost.haskell.org"
|
host="gitlab-storage.haskell.org"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: [rel_name=<name>] SIGNING_KEY=<key> $0 <action>"
|
echo "Usage: [rel_name=<name>] SIGNING_KEY=<key> $0 <action>"
|
||||||
|
Loading…
Reference in New Issue
Block a user